Reusable AI Engineering Skills for Coding Agents
Table of Contents
- What is AISkills?
- The Core Concept
- The AISkills Difference
- Canonical Skills Catalog (14 Skills)
- Engineering Document Templates (7 Templates)
- Engineering Workflows (6 Pipelines)
- Agent Platform Integration Guides
- CLI Installation and Usage
- Human-in-the-Loop Approval Model
- AI Security by Design (OWASP GenAI Top 10)
- Evaluation Honesty Standard
- Skill Authoring Guide
- Testing and CI/CD
- Roadmap
- Contributing and License
What is AISkills?
AI coding agents are capable executors, but they are inconsistent engineers:
- They jump straight to code generation without understanding requirements or constraints.
- They invent architecture without inspecting existing repository conventions.
- They skip testing, security audits, and evaluation.
- They have no structured process for AI-native challenges (RAG architectures, agent tool permissions, token budgets, hallucination rates, indirect prompt injection).
AISkills solves this by providing a standardized, tool-agnostic engineering playbook for AI coding agents. It encodes disciplined engineering workflows into the machine-readable open SKILL.md format.
The Core Concept
LLM = Brain (Reasoning, Language Understanding, Code Generation)
Coding Agent = Worker (File I/O, Command Execution, IDE Tooling)
AISkills = Engineering Playbook (Requirements -> Architecture -> TDD -> Evaluation -> Security -> Production)
An analogy: a licensed civil engineer does not begin pouring concrete the moment a building is requested. They survey the terrain, verify soil mechanics, draft blueprints, calculate load limits, document trade-offs, and obtain permits before construction. AISkills brings this exact engineering discipline to AI coding agents.
The AISkills Difference
User: "Build a document Q&A RAG application for our internal docs."
Without AISkills:
└── Agent immediately writes arbitrary boilerplate using unverified libraries.
With AISkills:
└── 1. Requirements Analysis -> [SPEC.md] (Extract functional requirements, latency SLOs, cost budget)
2. Repository Discovery -> Inspect existing stack (PostgreSQL + pgvector, FastAPI)
3. RAG Architecture Design -> [DESIGN.md + ADR.md] (Chunking strategy, embedding model, hybrid search)
4. Implementation Planning -> Ordered, reviewable steps with human approval gates
5. TDD Implementation -> Write failing tests first for chunking, parser, and search
6. RAG Evaluation -> [EVALUATION.md] (Measure faithfulness, answer relevancy, context precision)
7. AI Security Audit -> [SECURITY.md] (OWASP GenAI LLM Top 10 defense against prompt injection)
8. Production Readiness -> 11-point pre-deploy verification (fallbacks, observability, rate limits)
Why These Skills Exist: Fixing the 3 Classic Agent Failure Modes
AISkills is built to resolve the three most common failure modes developers encounter with Claude Code, Cursor, Codex, and coding agents:
1. Misalignment: "The Agent Didn't Build What I Wanted"
"No-one knows exactly what they want." - David Thomas & Andrew Hunt, The Pragmatic Programmer
- The Problem: The user provides a brief prompt ("add OAuth login"). The agent begins coding with unspoken assumptions, leading to massive rework when the result doesn't match the user's intent.
- The Fix: An interactive grilling session (
grill-with-docs/grill-me). The agent interrogates the human on edge cases, domain models, permissions, and failure modes before touching code.
2. Verbosity: "The Agent Is Too Wordy and Hallucinates Jargon"
"With a ubiquitous language, conversations among developers and expressions of the code are all derived from the same domain model." - Eric Evans, Domain-Driven Design
- The Problem: Agents dropped into a repository use 20 vague words where 1 precise domain term will do.
- The Fix: A shared Ubiquitous Language documented in
CONTEXT.md. For example:- Before: "There's an issue when a lesson inside a course section is given a spot on the file system."
- After (Ubiquitous Language): "There's a problem with the materialization cascade."
- Using
grill-with-docs, the agent extracts domain jargon and captures hard architectural trade-offs in ADRs (templates/ADR.md).
3. Lack of Engineering Guardrails: "Vibe Coding without Verification"
- The Problem: Agents delete files, skip tests, force-push branches, and declare features "done" without measuring quality.
- The Fix: Hard safety rules (
git-guardrails), test-first discipline (tdd), ticket slicing (task-decomposition), and formal evaluation (rag-evaluation).
Canonical Skills Catalog (22 Skills)
All skills follow the canonical SKILL.md specification (YAML frontmatter + 13 mandatory sections).
Software Engineering Skills (15)
| Skill | Category | Risk | Purpose | File Link |
|---|---|---|---|---|
repository-discovery |
discovery |
Low | Ground agent context in existing codebase patterns before touching code | SKILL.md |
requirements-analysis |
requirements |
Low | Transform ambiguous requests into structured, testable specifications | SKILL.md |
requirement-clarification |
requirements |
Low | Formulate targeted questions to resolve blocking ambiguities | SKILL.md |
grill-me |
requirements |
Low | Interactive requirements interview to uncover hidden edge cases | SKILL.md |
grill-with-docs |
requirements |
Low | Build ubiquitous domain language, update CONTEXT.md, and draft ADRs |
SKILL.md |
triage |
requirements |
Low | Systematically categorize, prioritize, and label issues and bug reports | SKILL.md |
architecture-design |
architecture |
Medium | System design with explicit trade-offs and Architecture Decision Records (ADRs) | SKILL.md |
rapid-prototyping |
architecture |
Low | Time-boxed disposable spikes and exploratory feasibility prototypes | SKILL.md |
implementation-planning |
implementation |
Medium | Ordered, step-by-step implementation plans with risk mitigation | SKILL.md |
task-decomposition |
implementation |
Low | Slice features and PRDs into atomic, independently verifiable tickets | SKILL.md |
tdd |
testing |
Low | Test-driven development workflow (write failing tests first) | SKILL.md |
bug-diagnosis |
debugging |
Low | Systematic root-cause isolation before attempting code fixes | SKILL.md |
code-review |
code-review |
Low | Multi-dimensional review (correctness, security, performance, maintainability) | SKILL.md |
session-handoff |
documentation |
Low | Compress session state into structured handoff notes for continuity | SKILL.md |
git-guardrails |
security |
High | Enforce safety boundaries on git commands and prevent secret leaks | SKILL.md |
AI Engineering Skills (7)
| Skill | Category | Risk | Purpose | File Link |
|---|---|---|---|---|
agent-design |
ai/agent-design |
Medium | Design single/multi-agent boundaries, tool permissions, memory, and guardrails | SKILL.md |
rag-architecture |
ai/rag |
Medium | End-to-end RAG architecture (chunking, embeddings, hybrid search, context assembly) | SKILL.md |
rag-evaluation |
ai/evaluation |
Low | Measure faithfulness, relevancy, context precision/recall, and hallucination | SKILL.md |
context-engineering |
ai/context-engineering |
Low | Token budgeting, context compression, prioritization, and injection detection | SKILL.md |
concise-mode |
ai/context-engineering |
Low | Zero-filler, high-density communication to conserve token budget | SKILL.md |
ai-security-review |
ai/ai-security |
Low | Security audit grounded in OWASP GenAI LLM Top 10 (2026) | SKILL.md |
production-readiness |
ai/production-ai |
High | Pre-deploy gating for model abstraction, cost SLOs, latency, and rollbacks | SKILL.md |
Engineering Document Templates
Standardized markdown templates produced by skills during execution:
templates/SPEC.md- Feature specification and acceptance criteria.templates/ADR.md- Architecture Decision Records with alternatives and trade-offs.templates/DESIGN.md- System design with dedicated AI/LLM architecture section.templates/EVALUATION.md- AI evaluation report with RAG, agent, and operational metrics.templates/SECURITY.md- Security review report mapping OWASP LLM01-LLM10.templates/PRD.md- Product requirements document.templates/REVIEW.md- Code review report with categorized findings.
Engineering Workflows
Composed pipelines that coordinate multiple skills across project milestones:
workflows/feature-development- Discovery through production release.workflows/rag-development- Use case analysis through production monitoring.workflows/agent-development- Agent boundaries, tools, and guardrails.workflows/bug-fixing- Reproduction, root cause analysis, regression test, and fix.workflows/security-review- AI security audit pipeline.workflows/production-readiness- Mandatory pre-deploy checklist.
Agent Platform Integration Guides
AISkills is tool-agnostic and functions with any AI coding agent.
1. Claude Code
Claude Code auto-discovers skills placed in .claude/skills/.
# Copy skills into your repository
mkdir -p .claude/skills
cp -r /path/to/aiskills/skills/* .claude/skills/
Claude Code will automatically select and activate skills based on user prompt context. See adapters/claude-code/README.md.
2. Gemini CLI / Antigravity
Gemini CLI auto-discovers skills from .agents/skills/ in the workspace root.
mkdir -p .agents/skills
cp -r /path/to/aiskills/skills/* .agents/skills/
Initialize your workspace with aiskills init to produce AGENTS.md and CONTEXT.md. See adapters/gemini/README.md.
3. Cursor
Add skill instructions to .cursorrules:
Before starting any task:
1. Read AGENTS.md and CONTEXT.md.
2. Inspect available skills in .aiskills/skills/.
3. Follow the relevant SKILL.md workflow.
4. Stop for human approval on all destructive actions.
See adapters/cursor/README.md.
4. OpenAI Codex
Inject the skill specification directly into the system prompt:
with open("skills/discovery/repository-discovery/SKILL.md") as f:
skill_content = f.read()
system_prompt = f"Follow this engineering workflow:\n{skill_content}"
5. Generic / Any Coding Agent
For any custom or LLM-based coding agent:
- Run
aiskills initin the project root. - Instruct the agent: "Read AGENTS.md and CONTEXT.md before beginning work, and execute the relevant skill from skills/."
- See adapters/generic/README.md.
6. Model Context Protocol (MCP)
Connect AISkills dynamically to Claude Desktop, Cursor, Zed, Windsurf, Claude Code, or Cline via native MCP:
# Run MCP server over stdio
aiskills mcp
# Or run over SSE
aiskills mcp --transport sse --host 127.0.0.1 --port 8000
CLI Installation and Usage
Installation
# Clone repository
git clone https://github.com/karthikrshet/aiskills.git
cd aiskills
# Install package with development and MCP dependencies
pip install -e ".[dev,mcp]"
Verify installation:
aiskills --version
# aiskills 0.1.0
CLI Commands Reference
| Command | Description | Example |
|---|---|---|
aiskills init |
Initialize AGENTS.md and CONTEXT.md in current project |
aiskills init |
aiskills list |
List all 22 canonical skills with categories and risk levels | aiskills list |
aiskills search <query> |
Deterministic ranked search across names, tags, categories, descriptions | aiskills search "RAG evaluation" |
aiskills info <skill> |
Display detailed skill metadata, description, tags, and related skills | aiskills info rag-evaluation |
aiskills validate |
Validate all skills against schema, section, and placeholder rules | aiskills validate --skills-dir skills/ |
aiskills doctor |
Verify repository health, grounding context, and scan for suspicious patterns | aiskills doctor --project-dir . |
aiskills mcp |
Run Model Context Protocol server over stdio or SSE | aiskills mcp --transport stdio |
Human-in-the-Loop Approval Model
AISkills enforces a strict three-tier human interaction model across all workflows:
| Tier | When Used | Required Agent Action |
|---|---|---|
| Inform | Low-risk findings, non-blocking observations | Report findings to human; continue workflow |
| Consult | Ambiguous requirements, architectural alternatives | Formulate targeted questions; pause for response |
| Approve | Destructive actions, production deployments, secrets | Full stop. Explicit written human approval required |
Mandatory Approval Actions
An AI coding agent must never execute the following without explicit human consent:
- Deleting files or directories
- Modifying production configuration files
- Changing credentials, API keys, or environment secrets
- Pushing commits or publishing releases
- Executing destructive database migrations or schema alterations
AI Security by Design
The ai-security-review skill provides a defensive audit grounded in the OWASP GenAI LLM Top 10 (2026):
- LLM01 - Prompt Injection: Direct prompt hijacking and indirect injection via retrieved documents.
- LLM02 - Sensitive Information Disclosure: System prompt leakage, training data extraction, PII exposure.
- LLM03 - Supply Chain Vulnerabilities: Unverified third-party models, plugins, and fine-tuning datasets.
- LLM04 - Data and Model Poisoning: Manipulation of knowledge base content and embeddings.
- LLM05 - Improper Output Handling: Passing unsanitized LLM output to SQL engines, shell interpreters, or HTML DOM.
- LLM06 - Excessive Agency: Over-permissioned agents taking autonomous high-impact actions.
- LLM07 - System Prompt Leakage: Adversarial extraction of confidential business logic.
- LLM08 - Vector and Embedding Weaknesses: Semantic poisoning and adversarial query crafting.
- LLM09 - Misinformation & Hallucination: Fabricated outputs presented without source grounding.
- LLM10 - Unbounded Consumption: Resource exhaustion and unmonitored API billing spikes.
Evaluation Honesty Standard
AISkills strictly forbids fabricated benchmarks or assumed quality:
Evaluation Honesty Rule:
If a metric has not been measured on an actual evaluation dataset:
-> Report: NOT MEASURED
-> Do NOT estimate or invent scores.
-> Quality must be verified before declaring production readiness.
When evaluating RAG systems or Agents using templates/EVALUATION.md:
- Faithfulness: Does the answer contain only information from retrieved context?
- Answer Relevancy: Does the answer address the question?
- Context Precision: What fraction of retrieved chunks are relevant?
- Context Recall: Was all necessary context retrieved?
- Hallucination Rate: Fraction of answers containing ungrounded claims.
Skill Authoring Guide
To add a new skill to AISkills:
- Create a directory:
skills/<category>/<skill-name>/ - Create
SKILL.mdwith YAML frontmatter:--- name: your-skill-name description: | Clear description of when and why an agent should activate this skill. version: "0.1.0" category: discovery tags: [tag1, tag2] risk: low status: alpha related-skills: [repository-discovery] --- - Include all 13 required Markdown sections:
## Purpose## When to Use## When Not to Use## Inputs## Preconditions## Workflow## Decision Points## Safety Constraints## Expected Output## Validation## Failure Handling## Examples## Related Skills
- Run validation:
aiskills validate
See docs/skill-authoring.md for the complete authoring specification.
Testing and CI/CD
# Run the test suite (68 automated tests)
pytest tests/ -v
# Run linting and code formatting checks
ruff check cli/ tests/
ruff format --check cli/ tests/
GitHub Actions automatically executes:
- Multi-version matrix test across Python 3.10, 3.11, and 3.12
- Ruff linting and formatting compliance
- Automatic skill schema validation on pull requests
Roadmap
- v0.1.0-alpha (Current): 22 canonical skills, 7 templates, 6 workflows, 5 adapters, Python CLI with ranked search and validation, 68 automated tests.
- v0.2: Memory design skills, tool-use evaluation benchmarks, automated skill chaining engine.
- v0.3: Native RAGAS / DeepEval evaluation runners, expanded IDE sidecar plugins.
- v1.0: Stable release following community feedback and production validation.
Contributing and License
Contributions are welcome! Please read CONTRIBUTING.md and SECURITY.md before submitting pull requests.
License
Distributed under the Apache License 2.0. See LICENSE for terms.
Copyright (c) 2026 Karthik Rajesh Shet.