Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add OneDro1d/dark-factory --skill knowledge-buildgit clone --depth 1 https://github.com/OneDro1d/dark-factoryWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/onedro1d/dark-factory/knowledge-build)<a href="https://agentmods.dev/skills/onedro1d/dark-factory/knowledge-build"><img src="https://agentmods.dev/badge/skills/onedro1d/dark-factory/knowledge-build/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/onedro1d/dark-factory/knowledge-build"><img src="https://agentmods.dev/badge/skills/onedro1d/dark-factory/knowledge-build.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00107 | $0.01517 |
| Opus 5.5 | $0.00043 | $0.00607 |
| Sonnet 5.5 | $0.00021 | $0.00303 |
| Haiku 4.5 | $0.00011 | $0.00152 |
Grade A, and why
knowledge-build scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/knowledge-build — build the knowledge base
Everything this skill does comes from the knowledge: section of pair.yaml (areas, page kinds, graph relations,
followed branches, never-read folders, adversary sample size). Do not invent areas or kinds; if the person wants
different ones, change pair.yaml first and re-run ./setup-pair knowledge init.
Run it in the builder workspace. The tester never writes the library (it flags pages instead).
<kit> below is the builder-tester-agents folder; kr = <kit>/kit/bin/knowledge-refresh.
1. Plan (read-only)
<kit>/setup-pair knowledge init— safe to re-run: pins any source not yet pinned at its followed branch, regeneratesBRIEF.mdfrom pair.yaml, makes the area folders and graph file, starts the library history. A FAIL line (clone refused, unknown app) stops here: tell the person what to fix.<kit>/setup-pair knowledge plan— JSON: each area with its source folders, drafts folder and page kinds; the Engram space; the relations; the never-read globs; the adversary sample size. This is the whole job list.- If areas were named ("rebuild payments", or
/knowledge-build api billingfrom the builder's start or tick becauseknowledge-refresh unbuiltlisted them), keep only those areas. With no names: every area. - Engram: check the space named in the plan exists (list namespaces with your Engram tool). If it does not, ask
the person once, then create it (
engram_create_namespaceor your install's equivalent). No Engram tools or noengramname → build drafts only and say the pages are not published.
2. Research — one agent per area (or per service batch), in parallel
An app can hold any number of services. The plan lists each area's services (detected at knowledge init: every
folder that builds — Dockerfile, go.mod, package.json, *.csproj…, each Go cmd/<name> program — unless
repos[].services lists them) and splits them into research_batches (knowledge.services_per_agent, default 6).
Dispatch one sub-agent per batch (an area with one batch = one agent; send them all in one message). Each writes a
service page for EVERY service in its batch, then the flows / rules / links pages those services take part in.
The area's deploy_pages entry (if any) names the apps whose deployment lives in this area and their deploy files:
one more sub-agent writes a deploy page per app and environment — image build + registry, manifests / overlays,
cluster + namespaces, the exact deploy and rollback commands, how to verify it landed, who approves — cited to
those files, the deploy rulebook (rules.deploy_rulebook) and pair.yaml environments; link it DEPLOYS to each
service page it covers. Each prompt contains:
- the full text of
BRIEF.mdandpage-template.mdfrom the library folder (read them; paste, don't summarise); - the area name, its focus, its source folders (read-only), its drafts folder, and the services (or deploy files) this agent covers;
- the never-read globs, verbatim: opening any of them is a failed task;
- the return contract: files written with line counts; per file the citation count and open-question count; the 10 most load-bearing facts with citations; contradictions. RAW lists only — a prose summary is a failed task.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 81 lines · 107 tokens per session scan A b1fecf590c5e
knowledge-build is a skill published in the GitHub repository OneDro1d/dark-factory (3 stars, last pushed 2d ago), licensed Apache-2.0. It adds 107 tokens to every session and 1,517 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-21.
knowledge-build compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| knowledge-buildOneDro1d/dark-factory | Skill | 3 | 2d ago | Apache-2.0 | A | 107 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 101k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 395k | today | MIT | A | 36 | Claude Code |
| systematic-debuggingobra/superpowers | Skill | 331k | 3d ago | MIT | A | 21 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 15k | yesterday | CC0-1.0 | A | 113 | Claude Code, Codex |
| next-cache-components-adoptionvercel/next.js | Skill | 144k | today | MIT | A | 95 | Claude Code |