agentleFS
placethkplacethk/placet/skills/placet-knowledge-base-update/SKILL.md

placet-knowledge-base-update

Skill2 starsChanged 2 months agoMITView on GitHub

Placet Task 8.5 — incremental knowledge-base update. Update the DETAIL Requirement Index, function inventory, and related modules without a full rescan. Trigger in Claude Code via /placet-knowledge-base-update. Natural language: update knowledge base.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

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

    Write into the ## Knowledge Base Anchor section of docs/{requirement-id}/CHANGELOG.md (the only write location.

    line 50
  2. Distinctive:

    If validation reports Error, MUST fix before Task 8.5 counts as done.

    line 72

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

placet-knowledge-base-update — Incremental Knowledge-Base Update

Runtime: Claude Code. Run after a requirement is completed or changed. Do not full-rescan.

Trigger

/placet-knowledge-base-update --project <target-project-path> [--req-id <requirement-id>]

Or natural language: update knowledge base / knowledge base update

Prerequisites

  1. Read ~/.claude/placet-framework-path → $FRAMEWORK
  2. Read $FRAMEWORK/docs/KNOWLEDGE_BASE_RULES.md §6.1
  3. Read $FRAMEWORK/skills/placet-knowledge-base/reference.md §7–9

Inputs

SourcePurpose
Full document set under docs/{requirement-id}/Scope of this change
Source files modified this timeIncremental module/function updates
docs/knowledge-base/PROJECT_KNOWLEDGE_DETAIL.mdUpdate target
docs/knowledge-base/*.pumlPrefer updating these when a flow changes

Execution (fixed order)

1. Decide the update scope

  • Architecture / deployment change → also update BASE
  • Feature / module / function change → update DETAIL
  • Flow change → update PUML first, then DETAIL

2. Update DETAIL (MUST after every completed requirement)

  • Requirement Index: append or update one row (id, display name, level, related modules, version)
  • Function inventory table: append/update rows for functions touched by this change
  • API inventory (if HTTP changed): append endpoint rows
  • Update records: version +1, append a change note

3. Update the CHANGELOG.md anchor

Write into the ## Knowledge Base Anchor section of docs/{requirement-id}/CHANGELOG.md (the only write location; do not repeat this in 00/01/02/03 or other development docs):

## Knowledge Base Anchor
- Knowledge-base version: vX.Y
- Related module domains: ...
- See: docs/knowledge-base/PROJECT_KNOWLEDGE_DETAIL.md

4. Self-check list

  • DETAIL Requirement Index updated
  • Function inventory table synced
  • PUML change record appended (if applicable)
  • BASE / DETAIL / PUML version numbers match

5. Run knowledge-base validation

node "$FRAMEWORK/skills/placet-knowledge-base/scripts/validate-kb.js" "<target-project-path>"

If validation reports Error, MUST fix before Task 8.5 counts as done; Warning MUST be explained in the output with a follow-up suggestion.

6. Refresh the fact gate

node "$FRAMEWORK/skills/placet-knowledge-fact-gate/scripts/verify-kb-facts.js" "<target-project-path>" --query "<this-requirement-id-or-change-keywords>"

Report pass/fail to the user. fail means the knowledge base just written still has falsifiable fields that disagree with source — correct DETAIL and rerun, or mark those entries as not-to-be-used-as-fact in the output.

Outputs

Tell the user the updated file paths, version number, validate-kb.js result, and fact-gate pass/fail. Do not full-rescan the entire project (unless the user explicitly asks to rebuild the knowledge base).

Difference from Task 2

TaskSkillScope
2 full/placet-knowledge-baseFirst onboarding, whole-project scan
8.5 incremental/placet-knowledge-base-updateOnly chapters involved in this requirement

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.