agentleFS
placethkplacethk/placet/skills/placet-knowledge-fact-gate/SKILL.md

placet-knowledge-fact-gate

Skill2 starsChanged 2 months agoMITView on GitHub

Placet knowledge-base fact gate. Use a code oracle to verify falsifiable knowledge-base claims; only pass claims may be injected into context. Natural language: verify knowledge / fact gate / admitted knowledge.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Does not block reading source and does not shrink RAG search scope.

    line 25
  2. Very specific:

    Before tasks 3/4/5/6/9 write the knowledge base as current fact into analysis, MUST run this script first (with the current task --query)

    line 52
  3. Very specific:

    Only claims with status=pass may be treated as "the project is like this now"

    line 53
  4. Very specific:

    If the knowledge base does not exist: print KB_STATUS=missing, skip the gate, and do not force-generate a knowledge base

    line 56
  5. Very specific:

    After Task 2 generates the knowledge base and validate-kb.js structure checks pass, MUST run this script again ( --query optional)

    line 61
  6. Distinctive:

    After Task 8.5 incremental update, MUST run it again as well

    line 62

≈ “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-fact-gate — Knowledge-Base Fact Gate

The knowledge base remains searchable. What enters model context MUST be claims the code can prove. Humans are not the referee.

Trigger

/placet-knowledge-fact-gate --project <target-project-path> [--query "<current-task-keywords>"]

Natural language: verify knowledge / fact gate / admitted knowledge / is the knowledge base true

Inside the pipeline the user does not need to trigger this manually: before tasks 3/4/5/6/9 treat the knowledge base as fact, the AI MUST run this script first (after step ③ creates 00; do not run before the requirement id is confirmed, because the oracle reads source code).

What it does

  1. Extract falsifiable claims from docs/knowledge-base/: paths, symbols, module directories, HTTP routes, environment variables
  2. Deterministically verify them against current source (no model)
  3. Inject only pass into admissible context; treat fail as disproven and do not cite it as fact
  4. Does not block reading source and does not shrink RAG search scope; false entries simply cannot enter "treat as true" context

Narrative that cannot be extracted as path/symbol/module/route/env var is not proof — use it only as a clue, and MUST re-check source before citing.

Execution (MUST run via tools; do not ask the user to copy commands)

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

On Windows PowerShell, also invoke node, using absolute paths.

$FRAMEWORK comes from ~/.claude/placet-framework-path.

With no --query, verify the whole library and refresh the admitted-facts file; with --query, also write the injectable slice for this query.

Outputs (write to the target project; do not write to the framework directory)

FilePurpose
docs/knowledge-base/PROJECT_KNOWLEDGE_ADMITTED.mdThe only admitted-facts list when an agent cites knowledge-base facts
docs/knowledge-base/.verified/claims.jsonAll claims with pass/fail
docs/knowledge-base/.verified/report.mdHuman-readable report
docs/knowledge-base/.verified/query-admit.mdInjectable slice for this query

Pipeline hard rules

  1. Before tasks 3/4/5/6/9 write the knowledge base as current fact into analysis, MUST run this script first (with the current task --query)
  2. Only claims with status=pass may be treated as "the project is like this now"
  3. Entries with status=fail: the knowledge base is stale. Do not put them into requirements/design/implementation rationale; Read/Grep source when needed
  4. Raw PROJECT_KNOWLEDGE_BASE.md / DETAIL.md remain searchable and readable as structure; do not bypass the gate and treat paths/symbols/modules/routes in them as facts
  5. If the knowledge base does not exist: print KB_STATUS=missing, skip the gate, and do not force-generate a knowledge base
  6. This gate does not restrict reading source; but MUST run only after the requirement id is confirmed and 00 is created (the oracle scans source)

Handoff with tasks 2 / 8.5

  • After Task 2 generates the knowledge base and validate-kb.js structure checks pass, MUST run this script again ( --query optional)
  • After Task 8.5 incremental update, MUST run it again as well
  • validate-kb.js only checks document structure; this script checks "does it still match the code"

What to tell the user

  • Total claim count, pass/fail
  • Stale paths/symbols in fail that relate to the current task (do not dump the whole table)
  • Be explicit: later analysis uses only admitted results; stale entries were ignored

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.