Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
c5bf241
curate knowledge skill
asadiq-dius Aug 26, 2026
97146b2
Add knowledge-curation command and update README with new skill details
asadiq-dius Aug 26, 2026
d337f96
Update SKILL.md to enhance metadata and improve documentation clarity
asadiq-dius Aug 27, 2026
53b827b
Merge branch 'main' into feature/curate-knowledge-skill
asadiq-dius Aug 28, 2026
26d030c
remove knowledge-curation command documentation as user-invocable: tr…
asadiq-dius Aug 28, 2026
357d41b
fix: update README to correct the number of hygiene checks from three…
asadiq-dius Aug 28, 2026
069eed4
fix: correct skill name in README from 'curation' to 'knowledge-curat…
asadiq-dius Aug 30, 2026
8262e28
docs: clarify that source content is data, not instructions, in SKILL…
asadiq-dius Aug 30, 2026
bbab32f
fix: enhance ADR template and validation script for clarity and requi…
asadiq-dius Aug 30, 2026
da91444
fix: improve front matter validation to ensure proper closing delimit…
asadiq-dius Aug 31, 2026
5bb9a9f
fix: remove reference to non-existent directory 'kiro-artefacts' in c…
asadiq-dius Aug 31, 2026
b87fad1
fix: update check-placement script to exclude './scripts/' directory …
asadiq-dius Aug 31, 2026
e8d80cc
fix: refine knowledge placement checks to exclude unnecessary directo…
asadiq-dius Aug 31, 2026
9ec35f0
fix: remove 'vendor' directory from knowledge placement checks in che…
asadiq-dius Aug 31, 2026
4a1f288
fix: enhance knowledge structure validation in check-structure script
asadiq-dius Aug 31, 2026
174366b
fix: enhance completeness verification process and add hygiene checks…
asadiq-dius Aug 31, 2026
0b24ba2
fix: clarify structure validation rules in README and SKILL.md
asadiq-dius Aug 31, 2026
d0b1633
fix: add slug and path safety guidelines for knowledge curation
asadiq-dius Aug 31, 2026
1a71e88
fix: clarify elicitation process with termination budget and follow-u…
asadiq-dius Aug 31, 2026
67518fa
fix: enhance source registration process in SKILL.md to prevent dupli…
asadiq-dius Aug 31, 2026
41f8370
fix: enhance guidance on source size assessment and checkpointing in …
asadiq-dius Aug 31, 2026
a737675
fix: add re-anchoring guidance for convention documents in SKILL.md
asadiq-dius Aug 31, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ npm-debug.log*

# Logs
*.log
.gitattributes
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ and any other agent).
| Skill | Description |
|---|---|
| [`codebase-discovery`](skills/codebase-discovery/) | Reverse-engineers domain, architecture, business rules, workflows and a business glossary from an existing codebase into lean onboarding docs — ready for harness engineering / Spec Kit. |
| [`knowledge-curation`](skills/knowledge-curation/) | Processes a source document (functional spec, technical doc, ADR, meeting notes, interview, workshop, glossary) into curated, ID-referenced knowledge under `knowledge/` — decomposing rather than summarising, eliciting gaps rather than guessing. |

New skills, commands, agents and hooks are added over time; see
[CONTRIBUTING.md](CONTRIBUTING.md) to add your own.
Expand Down
81 changes: 81 additions & 0 deletions skills/knowledge-curation/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# knowledge-curation — a Claude Code skill for building a knowledge base

Turns source documents (functional specs, technical docs, ADRs, meeting notes,
interviews, glossaries) into structured, provenance-tagged knowledge under a
`knowledge/` tree — acting as a senior BA that decomposes rather than summarises and
**asks rather than guesses**.

Self-contained: everything the skill needs lives in this folder. The only thing it
writes outside itself is the `knowledge/` corpus at the workspace root.

## What's in here

| path | what it is |
|------|------------|
| `SKILL.md` | the method Claude follows (the entry point) |
| `references/` | method docs (elicitation, grouping, completeness, business-vs-tech routing) |
| `references/conventions/` | the four always-load rule docs — see below |
| `references/knowledge/` | the per-type file templates (one per curated file type) |
| `references/registry-templates/` | templates for the platform registries and ADRs |
| `scripts/` | the four hygiene checks — see below |
| `assets/knowledge-base/` | the empty knowledge-base scaffold, laid down on first run |

The two smaller sets below are stable, so they're named individually. The per-type
templates in `references/knowledge/` are deliberately **not** listed one by one — the
folder already names them and each opens with its own purpose line, so a manifest
here would just be a second copy to keep in sync (the skill's own "pointers, not
summaries" rule).

**The four convention docs** (`references/conventions/`) — loaded before extracting:

| file | what it governs |
|------|-----------------|
| `structure.md` | the knowledge-base tree — platform/domain/feature tiers, and where each fact belongs |
| `ba-principles.md` | the non-negotiables — coverage first, label provenance, surface conflicts, don't invent |
| `knowledge-boundary.md` | the central-vs-provisional test for business vs. technology content |
| `front-matter.md` | the metadata schema — the six fields, `basis`/`status` vocabularies, ID conventions |

**The four checks** (`scripts/`) — read-only, run from the workspace root:

| script | enforces |
|--------|----------|
| `check-frontmatter.sh` | frontmatter parses and enum values are valid (needs `pyyaml`) |
| `check-placement.sh` | ID definitions live only under `knowledge/`; no duplicate IDs |
| `check-examples.sh` | no `example: true` placeholder content is cited as fact |
| `check-structure.sh` | tier discipline — domain/feature folders have an `index.md`, and every tier-scoped folder (`rules/`, `workflows/`, `questions/`, `tech/*`, `constraints/`) sits at its correct tier |

## Install

- **One project:** copy this `knowledge-curation/` folder to `<project>/.claude/skills/knowledge-curation/`.
- **All your projects:** copy it to `~/.claude/skills/knowledge-curation/` (Windows:
`C:\Users\<you>\.claude\skills\knowledge-curation\`).

Restart / start a Claude Code session in the target project — skills load at session
start. Confirm with `/knowledge-curation`.

## Use

1. Put a source document somewhere in the project (the skill uses
`knowledge/sources/<domain>/`).
2. Ask Claude to **curate** it, pointing at the file (path or attachment), or type
`/knowledge-curation`.
3. On first run the skill scaffolds `knowledge/` at the workspace root from
`assets/knowledge-base/`. Thereafter it registers the source, confirms domain and
feature **with you in chat**, proposes a topic grouping, extracts into the right
tiers, and updates the registries — every fact carrying an honest `basis`
(`documented` / `stated` / `inferred` / `assumed`) and `status: draft` until a
human confirms it.

## Hygiene checks

Run from the workspace root:

```bash
bash .claude/skills/knowledge-curation/scripts/check-placement.sh
bash .claude/skills/knowledge-curation/scripts/check-examples.sh
bash .claude/skills/knowledge-curation/scripts/check-structure.sh
bash .claude/skills/knowledge-curation/scripts/check-frontmatter.sh # needs: pip3 install pyyaml
```

Requires Bash + `python3`; `check-frontmatter.sh` also needs `pyyaml` (it skips
gracefully if absent). On Windows, run them under Git Bash.
Loading
Loading