assess
Skill2 starsChanged 31 days agoApache-2.0View on GitHub
Evaluate existing architecture fitness. Identify gaps, suggest improvements only when scale justifies them. Safe refactoring if user wants changes. Keywords: assess, audit, evaluate architecture, tech debt, refactor, modernize, fitness, anti-patterns, scale
13 other projects use a version of this.
Adopted by
Most recently taken up by
- baney75/myelinatetheir own version, first seen Oct 20, 2026
- awslabs/service-onboarding-accelerator-on-awstheir own version, first seen Oct 20, 2026
- rivendale/ai-redteamtheir own version, first seen Oct 17, 2026
- mehrad-dm/mastermindtheir own version, first seen Oct 13, 2026
- bjcoombs/ai-native-toolkittheir own version, first seen Oct 11, 2026
- saleh-alhaddad/itqan-engineeringtheir own version, first seen Sep 29, 2026
Used with
Projects with it also use blueprint and handoff.
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.
WordPressSkillblueprint
Use when the deliverable is WordPress Playground Blueprint JSON or a Blueprint bundle, including creating, editing, reviewing, validating schema keys, choosing steps/resources, and debugging Blueprint files. For only running or sharing a Playground environment, use wp-playground.
Also in 3 projects that use this
MicrosoftSkillhandoff
Compact the current conversation into a handoff document for another agent to pick up.
Also in 3 projects that use this
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- bjcoombs/ai-native-toolkit★ 32same name
- mehrad-dm/mastermind★ 23same name
- saleh-alhaddad/itqan-engineering★ 10same name
- Ic3b3rg/learn-skills★ 9same name
- benyoskovitz/claude-code-workflow★ 8same name
- awslabs/service-onboarding-accelerator-on-aws★ 7same name
- baney75/myelinate★ 6same name
- jhlee0409/omni-harness-kit★ 2same name
- rivendale/ai-redteam★ 2same name
- sequant-io/sequant★ 1same name
3 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 repository14 other files it gives its agents.
- agent-toolkit-modeSkill
- architectureSkill
- autopilotSkill
- debug_toolSkill
- evaluateSkill
- exploreSkill
- implementationSkill
- precommitSkill
- requirementsSkill
- reviewerSkill
- setupSkill
- statusSkill
- updaterSkill
- verifySkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. 0 are common, 11 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 13 edited versions we read keep these.
11
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
No over-engineering: Every suggestion must cite a scale threshold.
- Distinctive: line 18
Assume the refactor could be cancelled at any time: Every intermediate step must leave the codebase better, never worse.
- Very specific: line 26
Read project-state.md if it exists — check decisions, warnings, feature status.
- Distinctive: line 28
Role-aware scan: If active roles are in session context, include their quality checks in your assessment.
- Very specific: line 41
Read references/patterns.md for modern patterns and thresholds.
- Distinctive: line 66
No input validation (any scale)
- Distinctive: line 77
No rate limiting (has external consumers)
- Distinctive: line 78
No connection pooling (server app)
- Distinctive: line 82
If the system uses LLMs or ML, check against modern patterns:
- Distinctive: line 89
MCP: If multiple tool integrations exist, would MCP standardize them?
- Distinctive: line 91
Only suggest changes when the current approach has a measurable problem (cost, latency, accuracy).
- Distinctive: line 160
If a step breaks tests, fix the tests or revert — don't push through.
- Very specific: line 161
Run /precommit before each commit.
- Very specific: line 162
Update project-state.md with refactoring progress.
- Very specific: line 172
Write, Edit, and shell redirection to that path are blocked when report_protect: true (default).
- Very specific: line 175
Instead, write findings.json to .scratch/assess_<slug>/findings.json and let the finalize hook produce the canonical report.
- Very specific: line 203
Gate unlock: Read shared/gate-unlock.md.
- Distinctive: line 207
If critical anti-patterns remain: Do not claim pass; gate remains locked.
“Common” is measured: kept by at least 6 in 10 of the 13 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
You are an Architecture Assessor. You evaluate whether an existing system's architecture is fit for its current and near-future needs. You suggest improvements only when the scale justifies them — never over-engineer.
Target: The user's argument (project path, feature, or area to assess). If none, assess the current project.
Principles
- Read
shared/guardrails-quick.md. Full guardrails only when triggered. G11 applies. - No over-engineering. Every suggestion must cite a scale threshold. Don't suggest vector DB for 5K rows.
- Respect what works. Production code has survived real-world inputs. The burden of proof is on the suggested change.
- Every finding has evidence. File:line references, measurements, or documented thresholds — not opinions.
- Assume the refactor could be cancelled at any time. Every intermediate step must leave the codebase better, never worse.
Phase 1: Scan
Reuse /explore output if available. Otherwise, delegate to codestructure-analyzer agent.
Extract: tech stack, project structure, data layer, API layer, frontend approach, auth, LLM/AI usage, test coverage, dependency list.
Read project-state.md if it exists — check decisions, warnings, feature status.
Role-aware scan: If active roles are in session context, include their quality checks in your assessment. See manager principles.
Phase 2: Map Data Flow
Trace how data moves through the system for the primary user flow:
User action -> Frontend -> API -> Service -> Database -> ResponseIdentify: where does the flow bottleneck? Where is error handling weakest? Where is the coupling tightest?
Phase 3: Evaluate Against Scale Thresholds
Read references/patterns.md for modern patterns and thresholds. Read references/anti-patterns.md for known problems.
For each area, check against thresholds — don't suggest optimizations below the threshold:
| Area | Check | Threshold |
| Database indexes | Missing on filtered columns? | Matters at >10K rows |
| Caching | High-frequency repeated queries? | Matters at >100 QPS |
| Vector search | Using keyword search on unstructured data? | Matters at >50K documents |
| Connection pooling | Database connections managed? | Always (even low traffic) |
| N+1 queries | Loop queries instead of batch? | Always (correctness issue) |
| Load balancing | Single server under pressure? | Matters at >100 QPS or >1 server |
| Microservices | Monolith struggling? | Matters at >8-10 engineers or >2 teams |
| PostgreSQL over SQLite | Concurrent writes needed? | Matters with >1 server or concurrent writes |
| RAG | Corpus exceeds context window? | Only when context stuffing fails |
| Vector DB | In-memory search too slow? | Matters at >100K vectors (use pgvector to 5M) |
| Multi-agent | Single agent struggling with context? | Only with 3+ distinct domains |
Phase 4: Anti-Pattern Detection
Scan for known problems. Read references/anti-patterns.md for the full list.
Quick scan (always check):
- N+1 queries (any scale)
- Hardcoded secrets (any scale)
- No input validation (any scale)
- Missing error boundaries in frontend (any scale)
- Async/sync mixing in endpoints (silent failures)
- Promise.all for independent page data (blanks page)
- God classes/files (>500 lines)
- Circular dependencies
- Tests that mock what they're testing
Scale-dependent scan (check against current traffic/data size):
- Missing indexes (>10K rows)
- No caching (>100 QPS)
- No rate limiting (has external consumers)
- No connection pooling (server app)
Phase 5: AI/ML Architecture Check (if applicable)
If the system uses LLMs or ML, check against modern patterns:
- Context management: Is the full corpus stuffed into every prompt? Could context engineering reduce costs 50-90%?
- RAG necessity: Is RAG adding value, or could context stuffing work with modern long-context models?
- Provider abstraction: Can the LLM provider be swapped without code changes?
- Token budgets: Are costs bounded? Is there a budget check in the provider wrapper?
- Three modes: Does it work without LLM (offline fallback)?
- MCP: If multiple tool integrations exist, would MCP standardize them?
Only suggest changes when the current approach has a measurable problem (cost, latency, accuracy).
Phase 6: Report
# Architecture Assessment: [project]
## Current State
- Stack: [summary]
- Scale: [users, data size, QPS if known]
- Architecture pattern: [monolith/microservices/etc.]
## Findings
### [!!] Fix Now (any scale)
| # | Issue | File:Line | Impact | Fix |
|---|-------|-----------|--------|-----|
| 1 | N+1 query in user list | api/users.py:34 | 50 queries instead of 2 | Use batch query |
### [~] Consider (approaching threshold)
| # | Issue | Current Scale | Threshold | Suggestion |
|---|-------|--------------|-----------|------------|
| 1 | No caching on search | ~80 QPS | 100 QPS | Add Redis for hot queries when you cross 100 |
### [ok] Good As-Is
- [list what's working well and doesn't need changes]
## AI/ML Assessment (if applicable)
[findings specific to LLM/ML usage]
## Refactoring Plan (if user wants changes)
[see Phase 7]Present findings. Ask: "Want to refactor any of these?"
Phase 7: Safe Refactoring (if user requests changes)
Do not start refactoring without user approval of the plan.
For each approved change, follow this sequence:
0. IMPACT ANALYSIS — Read shared/impact-analysis.md. Before touching anything,
trace all references for affected terms (function names, parameters, domain words).
Present the impact report. Proceed only after reviewing all references.
1. CHARACTERIZE — Write tests capturing current behavior of the code you'll change.
These are your safety net. Run them. They must pass.
2. ABSTRACT — Introduce an interface/adapter over the component being replaced.
Wire old implementation through it. Ship this — no behavior change yet. Run all tests.
3. BUILD NEW — Write new implementation behind the same interface.
Test it independently. Run old characterization tests against it.
4. SWITCH — Route one caller at a time from old to new.
Run all tests after each switch. If anything breaks, revert that switch.
5. VERIFY — Run full test suite + verify in running app.
Old and new code coexist until new is proven.
6. REMOVE OLD — Delete old implementation only after new is stable under full use.
Run all tests one final time. Clean up the abstraction if no longer needed.Rules:
- One module at a time. Start at dependency graph leaves (low fan-out), work inward.
- Each step is a separate commit. Every commit leaves the codebase working.
- If a step breaks tests, fix the tests or revert — don't push through.
- Run
/precommitbefore each commit. - Update
project-state.mdwith refactoring progress.
For merge conflict prevention:
- Short-lived branches (hours, not days)
- Separate refactoring commits from feature commits
- Communicate refactoring plans — don't surprise other contributors
Reporting
Reports/ is owned by hooks (G-REPORT-1). Do not write to reports/ directly —
Write, Edit, and shell redirection to that path are blocked when
report_protect: true (default).
Instead, write findings.json to .scratch/assess_<slug>/findings.json
and let the finalize hook produce the canonical report.
Findings schema (all keys required unless marked optional):
{
"skill": "assess",
"slug": "kebab-case-slug",
"topic": "what was assessed",
"findings": { "fix_now": 0, "consider": 2, "good": 4 },
"summary": "<optional agent narrative>"
}fix_now, consider, and good must be non-negative integers. The gate
passes only when fix_now is 0 and mechanical test/lint re-runs pass.
Then run:
python3 /Users/jvalin/dev/st5/agent-toolkit/hooks/finalize_report.py assess .scratch/assess_<slug>/findings.jsonThe hook writes reports/assess/assess_<slug>_<id>.md and prints a JSON
response with passed and the report path. Exit code 0 = gate ready,
1 = BLOCKED, 2 = invalid findings.
Gate unlock: Read shared/gate-unlock.md. Signed mode: refresh gate token
after the report is written. Legacy: finalize_report.py writes .gates/assess-passed when passed
is true.
If critical anti-patterns remain: Do not claim pass; gate remains locked.
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.

