home / skills / plurigrid / asi / code-maturity-assessor
This skill assesses code maturity using Trail of Bits' 9-category framework to deliver evidence-based scores and actionable engineering recommendations.
npx playbooks add skill plurigrid/asi --skill code-maturity-assessorReview the files below or copy the command above to add this skill to your agents.
---
name: code-maturity-assessor
description: Systematic code maturity assessment using Trail of Bits' 9-category framework. Analyzes codebase for arithmetic safety, auditing practices, access controls, complexity, decentralization, documentation, MEV risks, low-level code, and testing. Produces professional scorecard with evidence-based ratings and actionable recommendations. (project, gitignored)
category: building-secure-contracts
author: Trail of Bits
source: trailofbits/skills
license: AGPL-3.0
trit: -1
trit_label: MINUS
verified: true
featured: false
---
# Code Maturity Assessor Skill
**Trit**: -1 (MINUS)
**Category**: building-secure-contracts
**Author**: Trail of Bits
**Source**: trailofbits/skills
**License**: AGPL-3.0
## Description
Systematic code maturity assessment using Trail of Bits' 9-category framework. Analyzes codebase for arithmetic safety, auditing practices, access controls, complexity, decentralization, documentation, MEV risks, low-level code, and testing. Produces professional scorecard with evidence-based ratings and actionable recommendations. (project, gitignored)
## When to Use
This is a Trail of Bits security skill. Refer to the original repository for detailed usage guidelines and examples.
See: https://github.com/trailofbits/skills
## Related Skills
- audit-context-building
- codeql
- semgrep
- variant-analysis
## SDF Interleaving
This skill connects to **Software Design for Flexibility** (Hanson & Sussman, 2021):
### Primary Chapter: 3. Variations on an Arithmetic Theme
**Concepts**: generic arithmetic, coercion, symbolic, numeric
### GF(3) Balanced Triad
```
code-maturity-assessor (○) + SDF.Ch3 (○) + [balancer] (○) = 0
```
**Skill Trit**: 0 (ERGODIC - coordination)
### Connection Pattern
Generic arithmetic crosses type boundaries. This skill handles heterogeneous data.
This skill performs a systematic code maturity assessment using Trail of Bits' nine-category framework to evaluate security and engineering readiness. It produces a professional scorecard with evidence-based ratings and clear, actionable recommendations. The assessment is designed for codebases written in Python and related ecosystems, focusing on practical remediation priorities.
The assessor analyzes the codebase across nine dimensions: arithmetic safety, auditing practices, access controls, complexity, decentralization, documentation, MEV risks, low-level code, and testing. It collects concrete findings, links evidence to each rating, and generates a scorecard with severity-weighted recommendations and remediation steps. The tool is intended to run against a project workspace and outputs compact, prioritized action items for engineers and security reviewers.
What does each category measure?
Each of the nine categories targets a specific risk or quality dimension—arithmetic safety checks numeric operations, access controls inspect auth patterns, complexity measures cyclomatic and structural risk, documentation and testing evaluate maintainability and coverage, and others focus on decentralization, MEV, auditing, and low-level code concerns.
How actionable are the recommendations?
Recommendations are prioritized and tied to concrete evidence (files, lines, test gaps) with suggested remediation steps and examples so teams can implement fixes directly.