code-standards-detective
Deep codebase analysis to discover actual coding standards through statistical evidence. Use when analyzing naming conventions, import patterns, or detecting anti-patterns in existing code. Provides evidence-based detection of how the codebase actually works (not aspirations).
Why use this skill?
Analyze your codebase with Code Standards Detective. Discover actual coding patterns, identify anti-patterns, and generate accurate style guides through statistical analysis.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/anton-abyzov/sw-code-standards-detectiveWhat This Skill Does
The Code Standards Detective is an analytical engine designed to reverse-engineer the unspoken rules of a codebase. Unlike traditional linting tools that enforce a rigid, pre-defined set of rules, this skill performs statistical analysis on existing code to reveal the de facto standards that have emerged over time. It identifies patterns in naming conventions, import structures, function architecture, and type usage. By treating your repository as a dataset, it provides evidence-based insights with confidence intervals, allowing teams to distinguish between desired coding standards and the actual reality of the codebase. It generates comprehensive, human-readable documentation that serves as a living style guide, helping onboard new developers and align long-term maintenance efforts.
Installation
To integrate this skill into your environment, use the OpenClaw command-line interface. Run the following command in your terminal within your OpenClaw-enabled project:
clawhub install openclaw/skills/skills/anton-abyzov/sw-code-standards-detective
Ensure that you have appropriate repository permissions, as the skill will need read access to your source code and configuration files to perform its analysis effectively.
Use Cases
- Legacy Code Onboarding: Rapidly understand how a legacy project is structured before beginning a refactor.
- PR Review Standardization: Establish clear project expectations to reduce bike-shedding during code reviews.
- Technical Debt Assessment: Quantify the spread of anti-patterns like excessive 'any' usage or inconsistent error handling across a large repository.
- Architecture Audits: Verify whether imports are following the defined architectural layers (e.g., ensuring feature-based isolation).
Example Prompts
- "Run a code standards analysis on the /src directory and generate a report on our variable naming and function patterns."
- "Detect any prevalent anti-patterns in our error handling logic and identify where we are violating our tsconfig strictness settings."
- "Analyze the current import structure of our project and suggest improvements based on the existing pattern of external versus relative imports."
Tips & Limitations
- Tip: Always run this tool after a clean git checkout to ensure the analysis reflects the latest commit.
- Tip: If your project is massive, target specific sub-directories to stay within token budgets.
- Limitation: The tool relies on grep and pattern matching; it does not perform deep AST analysis, so it may miss highly complex, non-standard code structures.
- Limitation: Accuracy depends on the sample size; very small modules may provide statistically insignificant results.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-anton-abyzov-sw-code-standards-detective": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read
Related Skills
network-engineer
Cloud network architect for VPC design, service mesh, zero-trust networking, load balancers, and CDN optimization. Use for network troubleshooting or connectivity issues.
jira-multi-project-mapper
Expert in mapping SpecWeave specs to multiple JIRA projects with intelligent project detection and cross-project coordination. Use when syncing to multiple JIRA projects (project-per-team, component-based), or managing bidirectional sync across team boundaries.
helm-chart-scaffolding
Design, organize, and manage Helm charts for templating and packaging Kubernetes applications with reusable configurations. Use when creating Helm charts, packaging Kubernetes applications, or implementing templated deployments.
performance-optimization
React Native performance with Hermes V1, FlashList, expo-image v2, concurrent rendering. Use for slow app, memory leaks, or FPS issues.
release-strategy-advisor
Release strategy advisor - detects brownfield patterns (tags, CI/CD, changelogs), recommends versioning strategy based on architecture. Creates release-strategy.md.