agentleFS
dimitar-radenkovdimitar-radenkov/Pointframe/.claude/skills/kb-write/SKILL.md

kb-write

Skill13 starsChanged 59 days agoMITView on GitHub

Write to the Pointframe knowledge base - add new knowledge or update stale knowledge in docs/knowledge-base/knowledge-base.md (cross-cutting) or docs/knowledge-base/features/<area>.md (one area, with F-NN feature rows). Use when the user types /kb-write; asks to document, write down, or update architecture, a feature, a subsystem, a decision, an invariant, a how-to, or a reference fact; or when a finished feature, refactor, fix, rename, or move changed how an area works.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read "How to maintain this file" at the top of docs/knowledge-base/knowledge-base.md once per session.

    line 10
  2. Distinctive:

    Not knowledge: test counts, PR numbers, "verified on my machine", what was tried and abandoned, anything derivable from git log.

    line 28
  3. Very specific:

    Look first: pwsh scripts/kb.ps1 read <topic or file>.

    line 32
  4. Distinctive:

    Read the code before writing.

    line 33
  5. Distinctive:

    Write it in the file from "Where it goes":

    line 34
  6. Distinctive:

    Keep the maps true in the same change:

    line 39
  7. Distinctive:

    Keep a section under about 80 lines and an area file under about 150.

    line 43
  8. Distinctive:

    If you compared every section against the code, move "Last full review" at the top of the main file to today.

    line 44

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/kb-write: add or update knowledge

/kb-write <topic> writes about one topic. /kb-write with no topic sweeps the current change: run pwsh scripts/kb.ps1 changed (against HEAD; add -Base master for a whole branch) and handle every section and feature it lists whose subject actually changed.

Read "How to maintain this file" at the top of docs/knowledge-base/knowledge-base.md once per session; it holds the templates and conventions.

Where it goes

The fact is...Goes to
A user-facing feature: how it is triggered, its entry point, telemetry, and testsA row in its area file's ## Features table, with the next free F-NN across all files
How one area works: flow, entry points, key types, its lessonsA ## section in features/<area>.md
A rule or recipe that only one area needsA ## section in that area file
Which sections to read before editing a folder or file patternA File map row in the main file
How the app is composed (host, DI, messaging)## Subsystems in the main file
A choice with lasting impact and a reasonA ## D-NNN Title section with the next number across all files: in the area file if only one area needs it, otherwise in decisions.md
A rule every area must keep, with why and what breaks## Invariants in the main file
A recipe any area uses## How-tos in the main file
A stable table of paths, lifetimes, pipelines, tools## References in the main file
A bug, its root cause, and the fixlessons.md (Problem, Root cause, What fixed it, Takeaway), then a - Lesson: <heading> line in the owning section
A task, plan, status, or roadmap itemplan/ (local-only, not in git), not the knowledge base

Not knowledge: test counts, PR numbers, "verified on my machine", what was tried and abandoned, anything derivable from git log.

Steps

  1. Look first: pwsh scripts/kb.ps1 read <topic or file>. If a section already covers it, update that section instead of adding a near-duplicate.
  2. Read the code before writing. Every path you name must exist; every claim about behavior comes from the code, not from memory. Say why, not only what.
  3. Write it in the file from "Where it goes":
    • Main file: a ### <Title> section at the end of the right ## group.
    • Area file: a ## <Title> section, or a row in ## Features. A new area is a new features/<area>.md with # <Area>, a one-line scope, and ## Features.
    • Updating: rewrite stale sentences in place; never append "Update:" or "Correction:" paragraphs.
  4. End a section with a **Files.** line, See [...](...) links (another file's section is other.md#anchor or ../knowledge-base.md#anchor), and - Lesson: lines with exact lessons.md headings.
  5. Keep the maps true in the same change:
    • A new, removed, or rewired feature, telemetry event, or smoke test: update its F-NN row. IDs are never renumbered or reused; a removed feature's ID stays retired.
    • A new, renamed, or moved folder or project: add or rewrite its File map row; link new sections from the rows whose files they describe.
    • A reversed decision: a new ## D-NNN, and "Superseded by D-NNN" as the first line of the old one.
  6. Keep a section under about 80 lines and an area file under about 150; prefer tables and short lists. Dates are absolute; no status badges.
  7. If you compared every section against the code, move "Last full review" at the top of the main file to today.
  8. Finish with /kb-check. Report what was added, what was updated, and anything you saw but left alone.

CLAUDE.md gets at most one line per topic; detail lives in the knowledge base. Nothing is committed; the user reviews and commits.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.