Skip to content

dev2k6/a15w

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

16 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ A15W β€” AI Agent Code Review

A15W = AI Agent Code Review. The definitive skill extension pack for AI coding agents.

Born from a simple observation: AI generates code fast, but fast β‰  correct. A15W brings structured, multi-tier analysis pipelines that catch hallucinations, security flaws, and architectural drift before they reach production.


βš”οΈ The Problem

AI writes code at unprecedented speed. But every day, developers ship:

  • Fabricated imports β€” packages that don't exist on npm/PyPI
  • Hardcoded secrets β€” API keys, passwords, JWT tokens in plain text
  • Injection vulnerabilities β€” SQL, command, XSS waiting for exploitation
  • N+1 query disasters β€” database performance killed by AI-generated loops
  • Missing auth checks β€” endpoints exposed because the model "forgot"

Traditional linting catches syntax. A15W catches semantic failures.


✨ Why A15W?

Generic AI Output A15W-Gated Output
"It compiled" "All 8 review stages passed"
"Tests will catch it" "Tests generated and passing"
"We'll audit security later" "Security validated. Zero critical issues."
"Should be fast enough" "Performance profiled. Hot paths optimized."
"Dependencies look fine" "Dependency audit complete. No CVEs."

A15W doesn't suggest. It enforces.


🎯 The Arsenal: 7 Skills

A15W's core is Code Review Pipeline β€” the 8-stage ordered inspection that stops on critical failures. But code review alone isn't enough. The full arsenal includes:

πŸ” 1. Code Review Pipeline (Core)

8 stages. Macro to micro. Abort on failure.

Validates AI-generated code from business logic down to syntax. Catches hallucinations, verifies dependencies exist, checks edge cases, audits database patterns, enforces security, and validates against original prompt constraints.

πŸ›‘οΈ 2. Security Audit

10 stages. Critical-first. Fatal on secrets.

Hardcoded credentials? Injection flaws? Auth bypass? XSS vectors? Weak crypto? Stops immediately and flags. Production secrets in code = pipeline abort.

πŸ§ͺ 3. Test Generation

8 stages. Real tests. Zero trivial mocks.

Generates edge case coverage, error path testing, integration scenarios, and property-based invariants. expect(true).toBe(true) gets rejected. Tests must assert actual behavior.

πŸ”„ 4. Refactor Safety

8 stages. Behavioral equivalence.

Refactored code must produce identical outputs, side effects, and error conditions. Same database writes. Same API calls. Same exceptions. Or it fails validation.

πŸ“¦ 5. Dependency Audit

8 stages. Supply chain defense.

CVEs, license conflicts, abandoned packages, duplicate dependencies, bundle bloat. Know what's in your node_modules before attackers do.

πŸ“‹ 6. API Contract Validation

9 stages. OpenAPI/Swagger fidelity.

Every endpoint. Every status code. Every field. Every error response. Matches the spec or it doesn't ship. No undocumented behavior allowed.

⚑ 7. Performance Profiling

10 stages. Measure before optimizing.

N+1 queries, memory leaks, blocking I/O, hot paths, GC pressure. Find the 20% causing 80% of latency. Quantify before you optimize.


🚦 Pipeline Philosophy

Every A15W skill follows the same pattern:

Stage 1 β†’ Stage 2 β†’ Stage 3 β†’ ... β†’ Stage N
   ↓         ↓         ↓
  FAIL     FAIL      FAIL
   ↓         ↓         ↓
  STOP     STOP      STOP

Early termination saves tokens and time. If Stage 1 detects a fatal issue, why waste compute on Stage 8?

Output format: [PASS/FAIL/WARN] - Stage: Issue & suggested fix

Brevity. Actionability. Zero fluff.


πŸ’‘ Core Principles

Macro β†’ Micro

Architecture before syntax. Business logic before formatting. If the foundation is broken, stop. Don't polish a broken building.

Critical β†’ Cosmetic

Secrets before semicolons. Injection flaws before missing whitespace. If production credentials are exposed, nothing else matters.

Verify β†’ Trust

Never trust AI-generated imports, function names, API endpoints, or database schemas. Verify everything exists in reality.

Measure β†’ Guess

Profile before optimizing. The bottleneck is never where intuition suggests. Data beats assumptions.


πŸ“₯ Installation

Via npm (Recommended)

# Run CLI to view package info
npx a15w

# Or install globally
npm install -g a15w

After npm install, skills are available at:

  • node_modules/a15w/skills/ β€” SKILL.md format for npx skill CLI
  • node_modules/a15w/manifest.json β€” For Trae IDE / Claude Code integration

Via Git Clone

git clone https://github.com/dev2k6/a15w.git
cd a15w

Then configure your AI agent to use:

  • manifest.json at root for Trae IDE / Claude Code
  • skills/ directory for npx skill CLI

Via skill CLI

npx skill add https://github.com/dev2k6/a15w.git --skill

This clones the repository and registers all 7 skills automatically.


πŸ“¦ Usage

For AI Agents

AI agents should read AGENT.md for complete usage protocol, including:

  • Automatic trigger phrase detection
  • Pipeline execution rules
  • Critical abort conditions
  • Output format requirements

For Humans

Skills activate via trigger phrases in your AI agent:

Trigger Skill Activated
"review this code", "PR review", "before merging" code_review_pipeline
"security audit", "vulnerability scan", "before deploy" security_audit
"write tests", "generate tests", "TDD" test_generation
"refactor", "is this safe to change", "cleanup" refactor_safety
"check dependencies", "npm audit", "license compliance" dependency_audit
"validate API", "OpenAPI check", "contract test" api_contract_validation
"performance", "why is this slow", "optimize" performance_profiling

Or invoke directly via manifest configuration in manifest.json.


πŸ“ Project Structure

a15w/
β”œβ”€β”€ AGENT.md              # AI agent usage protocol (read this first)
β”œβ”€β”€ README.md             # Human-facing documentation (you are here)
β”œβ”€β”€ manifest.json         # Skill registration (Trae/Claude format)
β”œβ”€β”€ package.json          # npm package metadata
β”œβ”€β”€ bin/a15w.js           # npm CLI entry point
β”œβ”€β”€ .gitignore            # Version control exclusions
└── skills/               # Skills CLI compatible format (SKILL.md)
    β”œβ”€β”€ manifest.json     # Skills CLI registry
    β”œβ”€β”€ code_review_pipeline/
    β”‚   └── SKILL.md      # With YAML frontmatter
    β”œβ”€β”€ security_audit/
    β”‚   └── SKILL.md
    β”œβ”€β”€ test_generation/
    β”‚   └── SKILL.md
    β”œβ”€β”€ refactor_safety/
    β”‚   └── SKILL.md
    β”œβ”€β”€ dependency_audit/
    β”‚   └── SKILL.md
    β”œβ”€β”€ api_contract_validation/
    β”‚   └── SKILL.md
    └── performance_profiling/
        └── SKILL.md

πŸ“Š By The Numbers

Metric Value
Total Skills 7
Total Pipeline Stages 61
Total Validation Checks 349
Average Stages per Skill 8.7
Code Review Stages 8
Security Audit Stages 10
Performance Profiling Stages 10

349 automated checks standing between you and production bugs.


πŸ† Competitive Edge

Capability A15W Basic Linting Manual Review
Ordered pipeline execution βœ… ❌ βœ…
Early abort on critical failures βœ… ❌ βœ…
AI hallucination detection βœ… ❌ ⚠️
Behavioral equivalence validation βœ… ❌ ⚠️
License compliance checking βœ… ❌ ⚠️
API spec enforcement βœ… Partial ⚠️
Performance quantification βœ… ❌ ⚠️
Zero-config activation βœ… βœ… ❌
Consistent, repeatable results βœ… βœ… ❌

πŸ“„ License

MIT License. Use it. Extend it. Ship with it.


🀝 Contributing

Missing a critical check? Found a gap in a pipeline? Open an issue or submit a PR.

This isn't just a skill pack. It's a standard for AI-assisted development.


πŸ”— Links


A15W β€” AI Agent Code Review. Because "it compiled" isn't a quality metric.

About

Production-grade skill arsenal for AI coding agents. 7 pipelines. 61 stages. 322 checks. Zero tolerance for hallucinations.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors