Skip to content

hieutrtr/ai1-skills

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AI1 Skills — SDLC Agent Skills for Python/React Projects

A portfolio of 17 Agent Skills covering the full software development lifecycle for Python (FastAPI) + React/TypeScript projects. Built on the Agent Skills open standard — works with Claude Code, Cursor, GitHub Copilot, Codex, Windsurf, and other compatible tools.

Quick Start

npx skills add hieutrtr/ai1-skills
Starting a... Guide
New project from scratch Greenfield Guide — step-by-step from planning to production
Existing project adoption Brownfield Guide — incremental adoption, security-first

Try these prompts after installing:

"Plan the implementation for adding user authentication"
"Create a FastAPI endpoint for user registration"
"Review this code for security vulnerabilities"

See Skill Composition Guide for how skills relate to each other.

Skills Overview

# SDLC Phase Skill What It Does
1 Planning project-planner Feature breakdown, implementation plans, dependency mapping
2 Planning task-decomposition Atomic task splitting, persistent task files, sizing criteria
3 Architecture system-architecture Layer architecture, ADRs, database schema design
4 Architecture api-design-patterns REST conventions, Pydantic v2 schemas, pagination, error format
5 Implementation python-backend-expert FastAPI endpoints, repository pattern, SQLAlchemy 2.0, Alembic
6 Implementation fastapi-patterns Middleware, dependency injection, WebSocket, JWT auth, lifespan
7 Implementation react-frontend-expert Components, hooks, TanStack Query, forms, accessibility
8 Testing react-testing-patterns Testing Library, MSW, hook testing, accessibility assertions
9 Testing tdd-workflow Red-Green-Refactor enforcement for backend and frontend
10 Testing pytest-patterns Fixtures, factories, async testing, mocking, parametrize
11 Testing e2e-testing Playwright, page object model, auth reuse, CI integration
12 Code Review code-review-security OWASP Top 10, SQL injection, XSS, secrets detection
13 Code Review pre-merge-checklist Quality gates: linting, types, coverage, API compatibility
14 Deployment deployment-pipeline CI/CD stages, canary rollout, rollback, GitHub Actions
15 Deployment docker-best-practices Multi-stage builds, layer optimization, security, Compose
16 Operations incident-response Severity classification, diagnostics, runbooks, post-mortems
17 Operations monitoring-setup structlog, Prometheus, health checks, alerting, Sentry

SDLC Flow

flowchart LR
    subgraph Planning
        PP["project-planner"] --> TD["task-decomposition"]
    end

    subgraph Architecture
        SA["system-architecture"]
        AD["api-design-patterns"]
    end

    subgraph Implementation
        BE["python-backend-expert"]
        FP["fastapi-patterns"]
        FE["react-frontend-expert"]
    end

    subgraph Testing
        TDD["tdd-workflow"]
        PY["pytest-patterns"]
        RT["react-testing-patterns"]
        E2E["e2e-testing"]
    end

    subgraph "Code Review"
        SEC["code-review-security"]
        PMC["pre-merge-checklist"]
    end

    subgraph Deployment
        DOC["docker-best-practices"]
        DEP["deployment-pipeline"]
    end

    subgraph Operations
        MON["monitoring-setup"]
        IR["incident-response"]
    end

    Planning --> Architecture --> Implementation --> Testing --> Code_Review["Code Review"] --> Deployment --> Operations
Loading

Installation

Option 1: skills.sh CLI (recommended)

Install the entire skill portfolio with one command:

npx skills add hieutrtr/ai1-skills

This downloads all 17 skills into your project's .claude/skills/ directory.

To install a single skill:

npx skills add hieutrtr/ai1-skills --skill "python-backend-expert"

Option 2: Git clone

Clone the repository directly into your project:

# Project-scoped (this project only)
git clone https://github.com/hieutrtr/ai1-skills.git .claude/skills-repo
cp -r .claude/skills-repo/skills/* .claude/skills/
rm -rf .claude/skills-repo

# Personal scope (all your projects)
git clone https://github.com/hieutrtr/ai1-skills.git ~/.claude/skills-repo
cp -r ~/.claude/skills-repo/skills/* ~/.claude/skills/
rm -rf ~/.claude/skills-repo

Option 3: Manual copy

Download individual skill directories from github.com/hieutrtr/ai1-skills and place them in one of these locations:

Scope Path Applies To
Personal ~/.claude/skills/<skill-name>/SKILL.md All your projects
Project .claude/skills/<skill-name>/SKILL.md This project only

Verify installation

Open Claude Code in your project and ask:

What skills are available?

Claude should list all 17 skills. You can also check context usage:

/context

Expected startup cost: 17 skills x ~100 tokens = ~1,700 tokens for Level 1 metadata.

Usage

How skills activate

Skills use a progressive disclosure model with three levels:

  1. Level 1 — Metadata (~100 tokens per skill): Skill descriptions are loaded at startup so Claude knows what's available.
  2. Level 2 — Full skill: When Claude determines a skill is relevant to your request, it loads the complete SKILL.md into context.
  3. Level 3 — References: Supporting files (references/, scripts/) are loaded on-demand only when the active skill references them.

You don't need to do anything special. Claude activates the right skill based on your request.

Automatic activation

Just ask Claude naturally. The skill descriptions contain phase-specific keywords that trigger the correct skill:

# Activates project-planner
"Plan the implementation for adding user authentication"

# Activates python-backend-expert
"Create a new endpoint for user registration"

# Activates pytest-patterns
"Write tests for the user service"

# Activates code-review-security
"Review this code for security vulnerabilities"

# Activates deployment-pipeline
"Set up the CI/CD pipeline for this project"

Direct invocation

Invoke any skill directly with its name as a slash command:

/project-planner Add a payment processing module
/python-backend-expert Create CRUD endpoints for orders
/code-review-security Review the auth module
/pre-merge-checklist Run all quality checks
/tdd-workflow Implement the search feature using TDD

How Skills Work Together

Skills compose across SDLC phases — each phase produces artifacts consumed by the next.

Phase Skills Output
Planning project-plannertask-decomposition Implementation plan → atomic task list
Architecture system-architecture + api-design-patterns ADRs, layer decisions, API contracts
Implementation python-backend-expert, fastapi-patterns, react-frontend-expert Backend + frontend code
Testing tdd-workflow + pytest-patterns / react-testing-patterns / e2e-testing Test-driven features, E2E coverage
Code Review code-review-securitypre-merge-checklist Security findings → quality gates
Deployment docker-best-practicesdeployment-pipeline Container images → CI/CD pipeline
Operations monitoring-setupincident-response Observability → runbooks

For detailed composition rules, activation boundaries, and workflow diagrams, see:

MCP Server Integration

Skills become more powerful when paired with MCP servers that provide live data access:

Skill MCP Server What It Enables
project-planner, task-decomposition Jira MCP Create issues, query backlog, link tasks
python-backend-expert PostgreSQL MCP Schema inspection during implementation
pytest-patterns CI Server MCP Trigger test runs, fetch coverage reports
code-review-security, pre-merge-checklist GitHub MCP Fetch PR diffs, post comments, check CI
deployment-pipeline GitHub MCP, Kubernetes MCP Trigger deploys, check pods, manage rollbacks
incident-response Datadog/PagerDuty MCP Query metrics, check alerts, manage incidents
monitoring-setup Datadog MCP Configure dashboards, verify alert rules

Skill anatomy

Each skill is a directory with this structure:

skill-name/
├── SKILL.md              # Main instructions (required, <500 lines)
├── references/           # Detailed docs, templates, examples (on-demand)
│   ├── template.md
│   └── patterns.md
└── scripts/              # Executable validation/automation scripts
    └── check.sh

SKILL.md format

Every SKILL.md has YAML frontmatter and Markdown content:

---
name: python-backend-expert
description: >-
  Python backend patterns for FastAPI with SQLAlchemy 2.0, Pydantic v2,
  and async patterns. Use during implementation when creating endpoints,
  models, or services. Does NOT cover testing (use pytest-patterns).
license: MIT
compatibility: 'Python 3.12+, FastAPI 0.115+, SQLAlchemy 2.0+, Pydantic v2'
metadata:
  author: platform-team
  version: '1.0.0'
  sdlc-phase: implementation
allowed-tools: Read Edit Write Bash(python:*) Bash(pip:*) Bash(alembic:*)
context: fork
---

# Python Backend Expert

## When to Use
...

## Instructions
...

## Examples
...

## Edge Cases
...

Key frontmatter fields:

  • description — Controls when Claude activates the skill. Include phase keywords and negative keywords ("Does NOT cover...")
  • allowed-tools — Restricts what tools Claude can use. Planning skills get read-only access; implementation skills get write access.
  • context: fork — Runs the skill in an isolated subagent context

Target stack

These skills encode conventions for:

Layer Technologies
Backend Python 3.12+, FastAPI 0.115+, SQLAlchemy 2.0+ (async), Pydantic v2, Alembic
Frontend React 18+, TypeScript 5+, TanStack Query 5+, Vite 5+, React Hook Form + Zod
Testing pytest + pytest-asyncio, Testing Library + Vitest, MSW 2+, Playwright
Code Quality ruff, mypy (strict), ESLint, Prettier
Deployment Docker (multi-stage), GitHub Actions, Prometheus, structlog, Sentry

Context budget

With all 17 skills installed, the context impact is minimal:

Level What loads Token cost
Level 1 (always) Skill descriptions for all 17 skills ~1,700 tokens
Level 2 (on activation) 1-2 active SKILL.md files ~5,000-10,000 tokens
Level 3 (on demand) Referenced files from references/ ~2,000-3,000 tokens
Typical total ~10,000-15,000 tokens

This is under 8% of a 200K context window.

Customization

Override a skill

To customize a skill for your project, copy it to your project's .claude/skills/ and edit. Project-scoped skills take precedence over personal-scoped ones.

Add project-specific conventions

Edit the relevant SKILL.md to add your team's conventions. For example, add your database naming conventions to python-backend-expert, or your component library patterns to react-frontend-expert.

Extend with references

Add files to references/ for large reference material. Reference them from SKILL.md:

See [API catalog](references/api-catalog.md) for endpoint documentation.

Claude loads these only when the skill is active and references them.

Compatibility

These skills follow the agentskills.io core standard and work with:

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •