codebase-index
Skill2 starsChanged 44 days agoApache-2.0View on GitHub
Maintain an up-to-date map of Agentica's design system — which components exist, their token dependencies, and where drift is occurring (orphaned/phantom tokens, components without a contract). Use when asked to index the design system, map component dependencies, or check for token drift.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- denfry/codebase-indextheir own version, first seen Nov 2, 2026
- KonghaYao/peritheir own version, first seen Oct 10, 2026
- SantiagoPrada2005/codebase-indextheir own version, first seen Oct 2, 2026
- murphytrueman/design-system-opstheir own version, first seen Sep 23, 2026
- cris-achiardi/claude-skillstheir own version, first seen Nov 14, 2025
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- KonghaYao/peri★ 252same name
- murphytrueman/design-system-ops★ 197same name
- cris-achiardi/claude-skills★ 66same name
- denfry/codebase-index★ 13same name
- SantiagoPrada2005/codebase-index★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository16 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- ai-component-metadataSkill
- ai-ds-composerSkill
- documentSkill
- post-change-pipelineSkill
- quality-gateSkill
- ux-pattern-reviewSkill
- ai-component-metadataSkill
- ai-ds-composerSkill
- codebase-indexSkill
- documentSkill
- post-change-pipelineSkill
- quality-gateSkill
- ux-pattern-reviewSkill
- design-system-builderSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 31
Read the .md file (contract)
- Very specific: line 32
Read the token in tokens/component.json
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill: codebase-index
Cross-tool port of
.claude/skills/codebase-index/SKILL.md(Claude Code's native implementation) — seegovernance/ai-skills-reference.mdfor the full picture of what Agentica's skills automate. This file follows the open Agent Skills format (agentskills.io) so Codex CLI and GitHub Copilot CLI load it automatically from.agents/skills/; content is identical in substance to the Claude Code version.Most of this is now real, tool-agnostic tooling, not just a described process:
node scripts/extract-relationships.js --fix-reportgenerates the relationship graph section below, andnode scripts/audit-tokens.jsgenerates the drift detection section. Run those first — only fall back to the manual process below for anything they don't cover (the Observatory-style system status report, and the Figma-specific "detached instances" check, which has no script yet).
Objective
Maintain an up-to-date map of the system: which components exist, what their dependencies are, which tokens they consume, and where drift is occurring.
Component index
Generation process
For each component in guidelines/components/:
- Read the
.mdfile (contract) - Read the token in
tokens/component.json - Identify dependencies (semantic tokens used)
- Identify components that use it (consumers)
- Compute the completeness score (see the
ai-component-metadataskill)
Index format
## Component index — [DATE]
| Component | Variants | Tokens | Score | Storybook |
|-----------|-----------|--------|-------|-----------|
| button | 4 | 18 | 100% | ✅ |
| input | 3 | 12 | 70% | ✅ |
| modal | 2 | 8 | 40% | 🟡 |
| badge | 4 | 6 | 90% | ✅ |Relationship graph
Generate with node scripts/extract-relationships.js --fix-report →
relationships-report.json. Manual shape, for reference:
Downstream dependencies (component → tokens)
button.primary
└── semantic.color.action.primary
└── primitive.color.blue.700
└── semantic.radius.control
└── primitive.radius.md
└── semantic.space.control.padding-x
└── primitive.space.4Upstream dependencies (token → components)
semantic.color.action.primary
├── component.button.primary
├── component.button.secondary (text)
└── component.input.default (border-focus)This graph makes it possible to know instantly, if primitive.color.blue.700 is
modified, which components are impacted.
Drift detection
Generate with node scripts/audit-tokens.js. Categories checked:
- Orphaned tokens — defined in
component.jsonbut never used in code. - Phantom tokens — used in code but not defined in the JSON files.
- Components without a contract — components in the code with no matching
.mdfile inguidelines/. - Detached instances (Figma) — Figma components whose properties have been overridden locally. No script for this yet; check manually via the Figma file.
System status report
Output format for the Observatory dashboard:
{
"generatedAt": "2026-05-18T10:00:00Z",
"components": {
"total": 12,
"agentReady": 8,
"partial": 3,
"notReady": 1
},
"tokens": {
"primitives": 45,
"semantic": 38,
"component": 67,
"orphaned": 2,
"phantom": 0
},
"accessibility": {
"violations": 0,
"warnings": 3
},
"drift": {
"hardcodedValues": 4,
"deprecatedTokens": 1,
"detachedInstances": 7
}
}Recommended frequency
| Index type | Frequency | Trigger |
| Full index | Weekly | Cron or manual |
| Drift detection | On every PR | CI — tokens-audit.yml |
| Observatory report | Daily | Cron |
| Relationship graph | On every token addition | Manual (npm run relationships) |
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.

