knowledge-build

knowledge-build is a skill for Claude Code, Codex from OneDro1d/dark-factory. It costs 107 tokens per session (1,517 once invoked), scanned A, original, Apache-2.0.

A process for building a code-cited knowledge base from selected source code. Research agents draft pages, an independent reviewer checks their claims against the code, and only checked pages are published and recorded.

In plain words
What is it for?
Use it to create or refresh technical reference pages, check each page's claims against a pinned source, link related knowledge, and commit the verified result.
Why use it?
It reduces the risk of publishing explanations that are not supported by the code. It also makes the source areas, page types, links, and review work explicit before rebuilding the library.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to create or refresh technical reference pages, check each page's claims against a pinned source, link related knowledge, and commit the verified result.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/onedro1d/dark-factory/knowledge-build
Install

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.

Any agent
npx skills add OneDro1d/dark-factory --skill knowledge-build
Clone the repo
git clone --depth 1 https://github.com/OneDro1d/dark-factory

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for knowledge-build

README.md
[![agentmods](https://agentmods.dev/badge/skills/onedro1d/dark-factory/knowledge-build/github.svg)](https://agentmods.dev/skills/onedro1d/dark-factory/knowledge-build)
Your own site
<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.

agentmods 80×15 button for knowledge-build

Your own site · 80×15
<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>
Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,517 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 1mo ago against content hash b1fecf590c5e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

builder-tester-pair/skills/knowledge-build/SKILL.md · 81 lines

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)

  1. <kit>/setup-pair knowledge init — safe to re-run: pins any source not yet pinned at its followed branch, regenerates BRIEF.md from 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.
  2. <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.
  3. If areas were named ("rebuild payments", or /knowledge-build api billing from the builder's start or tick because knowledge-refresh unbuilt listed them), keep only those areas. With no names: every area.
  4. 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_namespace or your install's equivalent). No Engram tools or no engram name → 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.md and page-template.md from 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.

Read the full file on GitHub · 81 lines

Changes

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.

  1. 1mo ago First seen · 81 lines · 107 tokens per session scan A b1fecf590c5e

Subscribe to this mod's changes

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.

Related

knowledge-build compared with skills from other repositories

knowledge-build next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
knowledge-buildOneDro1d/dark-factorySkill32d agoApache-2.0A107Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill331k3d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code