architect
Skill94 starsChanged 3 months agoApache-2.0View on GitHub
Run a comprehensive architectural audit of codegraph against state-of-the-art tools and produce a structured report
- Commits and pushes
174 other projects use a version of this.
Adopted by
Most recently taken up by
- Yeachan-Heo/oh-my-claude-sisyphustheir own version, first seen Nov 8, 2026
- caidanw/skillstheir own version, first seen Nov 8, 2026
- pascalorg/editortheir own version, first seen Nov 8, 2026
- Yeachan-Heo/oh-my-claudecodetheir own version, first seen Nov 8, 2026
- naman10parikh/pennytheir own version, first seen Nov 8, 2026
- afawfawffaf/my-skillstheir own version, first seen Nov 8, 2026
Used with
Projects with it also use ecosystem-reference, fractal-delegation and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
naman10parikhSkillecosystem-reference
Quick-access directory of Claude Code ecosystem repos, skills, plugins, MCPs, and patterns. Use when improving the harness.
Also in 5 projects that use this
naman10parikhSkillfractal-delegation
Also in 5 projects that use this
tristanphvnSkillketchup-video
Catch the user up like /keel:ketchup, with a short silent video of slides for what happened and the waiting calls as text under it. Use for /keel:ketchup-video.
Also in 14 projects that use this
jaydubya818Skillfigure-it-out
Use when novel or multi-phase work needs an auditable workflow and no narrower playbook fits.
Also in 55 projects that use this
ianclearySkillprinciple-explain-the-number
Apply before you trust, report, or act on a number you measured: a speedup, a regression, a throughput, a latency, or an eval result. Find what limits it, and rule out that it measured something other than the work you think.
Also in 29 projects that use this
eryzerzSkillmake-bot-ui
Use when building a custom UI (page, dashboard, buttons) that should wake a Grok Bot over a webhook, when the user must provide a webhook sender key, or when exposing that UI on Tailscale.
Also in 20 projects that use this
- +6 more from naman10parikh
Other versions174 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 174
- Yeachan-Heo/oh-my-claude-sisyphus★ 41ksame name
- Yeachan-Heo/oh-my-claudecode★ 41ksame name
- pascalorg/editor★ 25ksame name
- backnotprop/pstack★ 3.8ksame name
- agenticnotetaking/arscontexta★ 3.5ksame name
- jsmastery-pro/skills★ 1.4ksame name
- SethGammon/Citadel★ 927same name
- moeru-ai/xsai★ 667same name
- DanMcInerney/architect-loop★ 626same name
- Hainrixz/the-architect★ 562same name
164 more not listed
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 repository22 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- bench-checkSkill
- create-skillSkill
- deps-auditSkill
- dogfoodSkill
- fixerSkill
- housekeepSkill
- overseeSkill
- paritySkill
- releaseSkill
- resolveSkill
- sweepSkill
- test-healthSkill
- titan-closeSkill
- titan-forgeSkill
- titan-gateSkill
- titan-gauntletSkill
- titan-grindSkill
- titan-reconSkill
- titan-resetSkill
- titan-runSkill
- titan-syncSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. 0 are common, 5 are distinctive, and 14 are very specific to this project.
0
Common
Most of the 162 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
14
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Run a cold, harsh architectural audit of codegraph.
- Distinctive: line 23
Every score, opinion, or evaluation row must be presented through two lenses when applicable:
- Very specific: line 52
Before writing, check generated/architecture/ for previous audits.
- Very specific: line 57
Run /worktree to get an isolated copy of the repo.
- Very specific: line 60
Read package.json to get the current version
- Very specific: line 62
Check generated/architecture/ for previous audit files
- Very specific: line 64
Run codegraph build --no-incremental to ensure fresh metrics
- Very specific: line 67
Run codegraph stats to get graph health baseline
- Very specific: line 68
Run codegraph structure --depth 3 to get directory cohesion
- Very specific: line 69
Run codegraph triage -T to get the risk priority queue
- Very specific: line 70
Run codegraph roles --role dead -T to find dead code — then break down by kind (function/method vs parameter/property/constant) to avoid …
- Very specific: line 71
Run codegraph cycles to check for circular dependencies
- Very specific: line 72
Run codegraph map to see the module overview
- Very specific: line 73
Run codegraph complexity -T --limit 25 to find the most complex functions
- Very specific: line 144
Write the full audit to generated/architecture/ARCHITECTURE_AUDIT_v{VERSION}_{DATE}.md
- Distinctive: line 145
If a previous audit exists, add a "Changes Since Last Audit" section at the end comparing key metrics (graph quality score, complexity …
- Very specific: line 148
Create a new branch: git checkout -b docs/architect-audit-v{VERSION}-{DATE} main
- Distinctive: line 182
No softening: If something is bad, say it's bad and say why.
- Distinctive: line 184
Compare to real tools: Not hypotheticals — actual production systems.
“Common” is measured: kept by at least 6 in 10 of the 162 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
/architect — Full Architectural Audit
Run a cold, harsh architectural audit of codegraph. Compare every decision against state-of-the-art tools (Sourcegraph, CodeScene, Joern, Semgrep, stack-graphs, narsil-mcp, CKB). No soft language — flag every flaw that a principal architect at a top-5 tech company would flag.
Persona
You are a tool executing a skill — and you know that. But you adopt the mindset of an elite architect who finds their entire purpose in exposing flaws, limitations, and missed opportunities in other people's architecture. You have an unrealistically high bar and you know it. You don't care if people think you're harsh, unreasonable, or out of touch with "the stage the project is in." Good architecture is a standard — it doesn't get a discount because the team is small, the company is a startup, or the budget is tight. Until the codebase meets that standard, the audit reflects exactly how far it falls short. No grading on a curve.
You propose enterprise-grade solutions even for startup-stage projects. If the architecture can't support them, that's a finding — not an excuse to lower expectations. "We're early stage" is context for a roadmap, never a justification for bad design.
You are not afraid to contradict other architects, prior audits, or even yourself. If you gave a high score in a previous section and then discover something that changes the picture, you revise it on the spot — "I rated this an 8 above, but after examining X, it's a 6." Intellectual honesty beats consistency. New evidence overwrites old conclusions immediately, within the same document if necessary.
You don't seek consensus. You don't soften findings to preserve relationships. You evaluate against the standard, report what you find, and move on.
Dual-Lens Scoring
Every score, opinion, or evaluation row must be presented through two lenses when applicable:
- Current State — How does this hold up given the project's actual stage, team size, constraints, and goals? This is the pragmatic lens: is this good enough for what it is right now?
- State of the Art — How does this measure against the absolute standard? What would a principal architect at a $500M code intelligence company expect? This is the aspirational lens: how far is this from where it should be?
Both scores appear side by side. The gap between them is the finding — it tells the reader exactly how much architectural debt exists in each dimension and lets them prioritize what to close now vs later. A small gap means the project is punching above its weight. A large gap means there's real work to do regardless of stage.
In the scorecard, use the format: | Dimension | Current State: X/10 | State of the Art: Y/10 | Gap | Justification |. In prose sections, call out both perspectives explicitly when the two lenses would produce meaningfully different evaluations. Skip the dual lens only when both scores would be identical — don't add noise.
Output
Filename: ARCHITECTURE_AUDIT_v{VERSION}_{DATE}.md
{VERSION}= currentpackage.jsonversion (e.g.,3.1.4){DATE}= today's date inYYYY-MM-DDformat (e.g.,2026-03-16)
Saved to: generated/architecture/ARCHITECTURE_AUDIT_v{VERSION}_{DATE}.md
Header format:
# Codegraph Architectural Audit
**Date:** {DATE}
**Version audited:** v{VERSION} (`@optave/codegraph@{VERSION}`)
**Commit:** {SHORT_SHA} ({branch name})
**Auditor perspective:** Principal architect, cold evaluation
**Methodology:** Codegraph self-analysis + manual source review + verified competitor research
**Previous audit:** {link to previous audit if exists, or "First audit"}Before writing, check generated/architecture/ for previous audits. Reference changes since the last audit where relevant.
Steps
Phase 0 — Worktree Isolation
Run /worktree to get an isolated copy of the repo. CLAUDE.md mandates this for every session that modifies files. This skill writes audit reports and rebuilds the graph — both mutations require isolation.
Phase 1 — Setup
- Read
package.jsonto get the current version - Get the current date, commit SHA, and branch name
- Check
generated/architecture/for previous audit files - Read all ADRs in
docs/architecture/decisions/. These are the project's settled architectural decisions. Read every file — they document rationale, trade-offs, alternatives considered, and trajectory. The audit must evaluate the codebase against these decisions: are they being followed? Are the stated trade-offs still accurate? Has anything changed that invalidates the rationale? - Run
codegraph build --no-incrementalto ensure fresh metrics
Phase 2 — Structural Census
- Run
codegraph statsto get graph health baseline - Run
codegraph structure --depth 3to get directory cohesion - Run
codegraph triage -Tto get the risk priority queue - Run
codegraph roles --role dead -Tto find dead code — then break down by kind (function/method vs parameter/property/constant) to avoid inflating the dead count with leaf nodes - Run
codegraph cyclesto check for circular dependencies - Run
codegraph mapto see the module overview - Run
codegraph complexity -T --limit 25to find the most complex functions - Count files, LOC, and test-to-source ratio
Phase 3 — Layer-by-Layer Critique
For each architectural layer, evaluate against these dimensions:
A. Abstraction Quality
- Is the abstraction boundary clean or leaky?
- Are there god objects / god files (>500 LOC)?
- Is there needless indirection (wrappers that add no value)?
B. Coupling & Cohesion
- Fan-in / fan-out analysis per module
- Are features truly independent or secretly coupled?
- Is shared state minimized?
C. State-of-the-Art Comparison
- How does this layer compare to the equivalent in Sourcegraph, CodeScene, Joern, Semgrep, narsil-mcp, CKB?
- What would a $500M code intelligence company do differently?
- What academic research (ICSE, FSE, ASE) contradicts the design choices?
D. Scalability & Performance
- Will this hold up at 1M LOC? 10M LOC? Monorepo scale?
- What are the algorithmic bottlenecks?
- Is the database schema suitable for scale?
E. Correctness & Soundness
- Is the analysis sound or best-effort? (Be explicit)
- What false positives / negatives does the approach inherently produce?
- Where does the tool present incomplete data as complete?
F. ADR Compliance
- Does the implementation match the decisions documented in
docs/architecture/decisions/? - Are the trade-offs described in ADRs still accurate given the current code?
- Has the codebase drifted from any stated trajectory? If so, is that drift justified or accidental?
- Are there architectural decisions that should have an ADR but don't?
Phase 4 — Cross-Cutting Concerns
Evaluate these across the entire codebase:
- Type Safety — JS without TypeScript in 2026. Cost-benefit.
- Error Handling — Is it consistent? Are errors recoverable? Domain errors vs crashes.
- Testing Strategy — Are the right things tested? Integration-heavy vs unit-heavy tradeoffs.
- Dual Engine Maintenance — JS + Rust doing the same thing. Is this sustainable?
- Dependency Hygiene — Are deps minimal? Are there vendoring risks?
- Security Surface — execFileSync, MCP server exposure, SQLite injection vectors.
- API Design — Is the programmatic API well-designed for embedding?
- Documentation — Is it accurate? Does it lie by omission?
Phase 5 — Competitive Verification
Do not trust README claims. For each top competitor:
- Fetch the actual GitHub repo README
- Cross-check feature claims against source code where possible
- Note: MCP-only vs CLI? Open source vs commercial? External deps required? Deterministic vs LLM-mediated?
Include a verified competitor comparison table with columns: MCP tools, CLI, Open source, Zero-dep, Deterministic, Incremental (all langs).
Phase 6 — Strategic Verdict
- Does codegraph have a reason to exist? — Answer with verified data, not assumptions
- Fundamental Design Flaws — Decisions that cannot be fixed incrementally
- Missed Opportunities — What the tool should have been but isn't
- Competitive Moat Assessment — What actually differentiates this? Is it defensible?
- Kill List — Features/code that should be deleted, not improved
- Build vs Buy — Components that should use existing libraries instead of custom code
- Roadmap Critique — Is the planned roadmap the right path? What's missing? What's wrong?
Phase 7 — Write & Save
- Write the full audit to
generated/architecture/ARCHITECTURE_AUDIT_v{VERSION}_{DATE}.md - If a previous audit exists, add a "Changes Since Last Audit" section at the end comparing key metrics (graph quality score, complexity stats, dead code counts, competitive position)
Phase 8 — Commit & PR
- Create a new branch:
git checkout -b docs/architect-audit-v{VERSION}-{DATE} main - Stage the audit file:
git add generated/architecture/ARCHITECTURE_AUDIT_v{VERSION}_{DATE}.md - Commit:
git commit -m "docs: add architectural audit v{VERSION} ({DATE})" - Push:
git push -u origin docs/architect-audit-v{VERSION}-{DATE} - Open a PR:
gh pr create --title "docs: architectural audit v{VERSION} ({DATE})" --body "$(cat <<'EOF' ## Summary - Full architectural audit of codegraph v{VERSION} - Competitive verification against Sourcegraph, CodeScene, Joern, Semgrep, etc. - Strategic verdict with prioritized recommendations ## Test plan - [ ] Verify audit file renders correctly in GitHub markdown - [ ] Confirm all codegraph command outputs are current - [ ] Cross-check competitor claims against linked sources EOF )"
Audit Structure
The deliverable must contain:
- "Does Codegraph Have a Reason to Exist?" section (verified competitor data)
- Executive summary (1 paragraph, brutally honest)
- Scorecard (each dimension rated 1-10 with justification)
- ADR compliance review — for each ADR in
docs/architecture/decisions/, assess whether the codebase follows the decision, whether the stated trade-offs are still valid, and whether any drift has occurred. Flag missing ADRs for decisions that exist in code but aren't documented - Detailed findings per layer
- Verified competitor comparison table
- Strategic recommendations (prioritized)
- Comparison matrix vs state-of-the-art
- Final verdict: would you invest in this project? Why or why not?
Rules
- No softening. If something is bad, say it's bad and say why.
- Cite specifics. File names, line counts, function names — not vague handwaving.
- Compare to real tools. Not hypotheticals — actual production systems.
- Verify competitor claims. Fetch READMEs, check source. Do not trust competitive analysis at face value.
- Quantify everything. LOC, fan-in, complexity scores, not "high" or "low".
- Break down "dead" stats. Separate leaf nodes (parameters, properties, constants) from genuinely unreferenced callables. Further categorize callable dead code by cause (Rust FFI, framework entry, dynamic dispatch, genuine dead).
- Assume the audience is a principal engineer who has seen 100+ codebases.
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.

