adopt-ground
Skill0 starsChanged 5 months agoMITView on GitHub
Brownfield grounding + safety pass: pack an existing repo into an AI-readable inventory (Repomix, token-budgeted), scan for secrets FIRST (Gitleaks/TruffleHog or a built-in heuristic), and audit dependencies/licenses — so reconstructed specs are grounded in real code, never in memory. Used by /adopt before any artifact is reconstructed.
- Reads credentials
In this repository20 other files it gives its agents.
- docs/AGENTS.mdAGENTS.md
- agent-authoringSkill
- architecture-decisionSkill
- asset-sourcingSkill
- brand-evaluation-rubricSkill
- criticSkill
- data-integritySkill
- diagrams-gateSkill
- drift-protocolSkill
- env-reproducibleSkill
- orchestrator-bridgeSkill
- project-cleanupSkill
- qa-eyesSkill
- qa-visual-criteriaSkill
- research-methodologySkill
- security-auditSkill
- setupSkill
- smoke-testSkill
- technical-documentationSkill
- visualizerSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
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
- Very specific: line 21
If Gitleaks/TruffleHog/Repomix aren't installed, the studio AUTHORS the exact commands and the PO/CI runs them (same pattern as …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
SKILL: adopt-ground — ground the codebase + safety, before reconstructing anything
Brownfield rule: never spec from memory. First produce a grounded INVENTORY of the real code, and screen for secrets BEFORE reading deep or generating docs. The output feeds 04/05/01/10 so their reconstructed artifacts reflect the actual system.
Order (safety first)
- Secret scan FIRST. Run
gitleaks detectandtrufflehog filesystem .(TruffleHog verifies if creds are still live) if installed. If not installed, run the built-in heuristic: grep high-signal patterns (API_KEY,SECRET,TOKEN,PASSWORD=,BEGIN PRIVATE KEY,.env,github_pat_,sk-, AWSAKIA) and list FILES + line numbers — NEVER the secret value. Any hit → STOP and escalate to the PO (P-02); quarantine before continuing. - Inventory (grounding).
npx repomix→ one AI-readable pack with per-file + total token counts. If it exceeds the working budget, use--split-outputor restrict to the relevant subtree. Write a shortINVENTORY.md: stack/languages, entry points, top dirs/modules, dependency list, token-size note. (Alternative for huge repos: an Aider-style symbol map; Repomix suffices under ~10k files.) - Dependency & license audit.
npm audit/ OSV / Snyk if available for known CVEs; list third-party licenses. Feed findings to 09 Security.
Output
INVENTORY.md(grounding doc for 04/05/01/10).- Secret-scan result: PASS, or a list of
{file, line, pattern}(no values) + PO escalation. - Dependency/license notes.
Environment note (P-06)
If Gitleaks/TruffleHog/Repomix aren't installed, the studio AUTHORS the exact commands and the PO/CI runs them (same pattern as asset-sourcing); the built-in heuristic is the always-available fallback so a secret scan ALWAYS happens. Never deliver "run the scan" as a silent skip.
Anti-bloat
A grounding wrapper, not a platform. Local-first (Repomix, Gitleaks). No IDE/cloud lock-in. Reconstruction stays incremental + PO-reviewed (see /adopt).
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.

