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.
In this repository14 other files it gives its agents.
- .claude-collective/agents.mdAGENTS.md
- .claude-collective/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- .taskmaster/CLAUDE.mdCLAUDE.md
- ui-ux-pro-maxSkill
- placet-context-compressSkill
- placet-env-setupSkill
- placet-initSkill
- placet-knowledge-baseSkill
- placet-knowledge-base-updateSkill
- placet-nowSkill
- placet-skill-evalSkill
- placet-statusSkill
- placet-ui-uxSkill
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
- Distinctive: line 25
Does not block reading source and does not shrink RAG search scope.
- Very specific: line 52
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)
- Very specific: line 53
Only claims with status=pass may be treated as "the project is like this now"
- Very specific: line 56
If the knowledge base does not exist: print KB_STATUS=missing, skip the gate, and do not force-generate a knowledge base
- Very specific: line 61
After Task 2 generates the knowledge base and validate-kb.js structure checks pass, MUST run this script again ( --query optional)
- Distinctive: line 62
After Task 8.5 incremental update, MUST run it again as well
≈ “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.
Files
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
- Extract falsifiable claims from
docs/knowledge-base/: paths, symbols, module directories, HTTP routes, environment variables - Deterministically verify them against current source (no model)
- Inject only
passinto admissible context; treatfailas disproven and do not cite it as fact - 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)
| File | Purpose |
docs/knowledge-base/PROJECT_KNOWLEDGE_ADMITTED.md | The only admitted-facts list when an agent cites knowledge-base facts |
docs/knowledge-base/.verified/claims.json | All claims with pass/fail |
docs/knowledge-base/.verified/report.md | Human-readable report |
docs/knowledge-base/.verified/query-admit.md | Injectable slice for this query |
Pipeline hard rules
- 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) - Only claims with
status=passmay be treated as "the project is like this now" - Entries with
status=fail: the knowledge base is stale. Do not put them into requirements/design/implementation rationale; Read/Grep source when needed - Raw
PROJECT_KNOWLEDGE_BASE.md/DETAIL.mdremain searchable and readable as structure; do not bypass the gate and treat paths/symbols/modules/routes in them as facts - If the knowledge base does not exist: print
KB_STATUS=missing, skip the gate, and do not force-generate a knowledge base - 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.jsstructure checks pass, MUST run this script again (--queryoptional) - After Task 8.5 incremental update, MUST run it again as well
validate-kb.jsonly 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
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
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.

