- Home
- Skills
- Trailofbits
- Skills
- Code Maturity Assessor
code-maturity-assessor_skill
- Python
3k
GitHub Stars
1
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill trailofbits/skills --skill code-maturity-assessor- SKILL.md6.9 KB
Overview
This skill systematically assesses a codebase’s maturity using Trail of Bits’ nine-category framework and produces an evidence-based scorecard with actionable recommendations. It targets arithmetic safety, auditing practices, access controls, complexity, decentralization, documentation, MEV/transaction-ordering risks, low-level code, and testing. The output is a professional report with file-level evidence, ratings, and a prioritized improvement roadmap.
How this skill works
The assessor first discovers project structure, contract/module files, tests, and documentation. It then analyzes each of the nine categories by searching for relevant code patterns, reading key files, and collecting file:line evidence. Finally, it generates an executive summary, a maturity scorecard, detailed per-category findings, and a priority-ordered roadmap with recommended fixes and effort estimates.
When to use it
- Before or after a security audit to benchmark code maturity
- When preparing a codebase for production deployment or funding
- To prioritize remediation work across security and reliability issues
- During periodic security hygiene reviews or CI gating
- When onboarding new engineers to identify architectural risks
Best practices
- Provide full repository access including CI, tests, and docs for accurate assessment
- Answer follow-up questions about deployment, monitoring, and incident processes
- Treat the report as a roadmap: implement CRITICAL items first, then address HIGH and MEDIUM
- Use file:line evidence from the report to create precise tickets and tests
- Integrate recommended checks into CI to prevent regressions
Example use cases
- A smart-contract team preparing for a formal security audit and wanting a pre-audit maturity check
- A product team evaluating whether a codebase meets standards for a grant or investment
- A security lead prioritizing which defects to fix before launch
- An engineering manager measuring progress across documentation, testing, and access controls
- A research team investigating MEV or transaction-ordering risks in their protocol
FAQ
An executive summary, a maturity scorecard with ratings for all nine categories, detailed findings with file:line evidence, and a prioritized improvement roadmap with effort estimates.
How long does an assessment take?
Typical assessments take about 30–40 minutes for automated analysis, plus time for clarifying questions and deeper manual review as needed.