build-inventory
Skill2 starsChanged 47 days agoMITView on GitHub
Enumerates services, repos, APIs, and related assets into schema-valid inventory files for the Defense Factory Inventory phase. Use when starting discovery or when asset ownership is unknown.
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
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
- Distinctive: line 13
After prepare skills (policy + optional threat model)
- Very specific: line 15
When ownership routing needs accurate asset_ids
- Distinctive: line 21
Read access to repos, cloud inventories, manifests, or deployment configs in scope.
- Distinctive: line 50
Do not scan or inventory out-of-scope third-party production systems without authorization.
- Distinctive: line 51
Do not store secrets (API keys, passwords) inside inventory notes.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 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
build-inventory
Phase: Inventory
Style: Blue (defensive)
When to use
- After prepare skills (policy + optional threat model)
- Before
security-scan/security-diff-scan - When ownership routing needs accurate
asset_ids
Preconditions
- Authorization / ownership confirmed per SECURITY.md.
.defense-factory/exists (python scripts/init_workspace.py).- Read access to repos, cloud inventories, manifests, or deployment configs in scope.
Procedure
- Collect sources: git remotes, package manifests, Docker/K8s/IaC, API gateways, service catalogs, README deploy docs.
- For each asset, create an entry matching
schemas/inventory-entry.schema.json:id(stable, e.g.inv-<type>-<name>)name,asset_type,owner,environment,discovered_at,source- Optional
urls,repos,tags,exposure,notes
- Write:
.defense-factory/inventory/inventory.json—{ "entries": [ ... ] }- Optionally one file per asset under
.defense-factory/inventory/entries/
- Validate:
python <skills-repo>\scripts\validate_artifacts.py .defense-factory\inventory\inventory.json --schema inventory-entry- Flag assets with
ownerunknown; list them forroute-ownershiplater. - Cross-check threat-model priorities; tag high-priority assets.
Required outputs
| Path | Schema |
.defense-factory/inventory/inventory.json | inventory-entry (entries array) |
Stop / refuse
- Do not scan or inventory out-of-scope third-party production systems without authorization.
- Do not store secrets (API keys, passwords) inside inventory notes.
Next phase
security-scan (full) or security-diff-scan (change-scoped).
In this repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- dedupe-findingsSkill
- define-security-policySkill
- fix-findingSkill
- route-ownershipSkill
- security-diff-scanSkill
- security-scanSkill
- threat-modelSkill
- triage-validate-findingSkill
- verify-fixSkill
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.

