AI Coding, skill collection

Code intelligence

Seven skills for understanding, reviewing, debugging, refactoring, testing, explaining, and documenting code. Use the specific skill that matches the current stage of your change.

7 skillsMIT licensecode-intelligence

What to give your agent

A skill supplies a procedure. Give your agent the project evidence and constraints needed to apply it.

  • The branch and comparison base, plus the intended behavior of the change.
  • A failing test or error output, the relevant runtime version, and the command that produced it.
  • Repository contribution rules and any local work that must be preserved.

Review a retry fix before opening a PR

A payment client now retries requests after a timeout. The patch passes its happy-path test, but the first request may have reached the provider. This example follows the change from investigation to review.

  1. Trace the side effect

    Use the context-building skill to follow the call from the HTTP handler to the provider. Identify where the idempotency key is created and whether a retry reuses it. Record the relevant files before proposing edits.

  2. Reproduce the ambiguous timeout

    Have the test double accept the first request and then throw a timeout. Retry the same operation. Inspect both the response and the number of effects recorded by the double.

  3. Review the patch and its evidence

    Use the review skill on the final diff. Check the retry limit, reuse of the operation key, and behavior when the provider rejects the key. Attach the reproduction command and result to the review.

Example result structure
Finding: a retry creates a new operation key
Evidence: two effects recorded for one request
Fix: persist and reuse the operation key
Regression: accept-then-timeout fixture records one effect

How to check the result

  • The test fails on the original implementation and passes on the patch.
  • A retry after a timeout preserves the same operation identity.
  • The review links each finding to code and observed behavior.

A failure to watch for

A passing response assertion can miss a duplicated side effect. Inspect the provider state or a faithful test double as well.

This is an illustrative exercise. Run the checks against your own project to establish the result.

Skills in this pack

Open a skill to see its activation guidance, source sections, and individual install command. These descriptions come from the linked source files.

7 of 7 skills

AI Code Reviewerai-code-reviewer

Use this skill when reviewing AI-generated code. Activate when the user has code generated by an AI assistant and wants to review it, validate AI output, check for common AI mistakes, ensure code quality of generated code, or verify that AI-generated code follows best practices before merging.

Use it when

  • After AI generates code you plan to use
  • Before committing AI-assisted changes
  • When AI code "looks right" but you want verification
  • Reviewing PRs with significant AI-generated content

Inside the source file

  • The AI Code Review Checklist
  • Review Workflow
  • Common AI Mistakes by Language
  • Quick Validation Commands
  • When to Regenerate vs Fix
  • Documentation Template
Read ai-code-reviewer/SKILL.md on GitHub

Install this skill individually

npx skills add latestaiagents/agent-skills --skill ai-code-reviewer
Code Explanation Generatorcode-explanation-generator

Use this skill when generating explanations for code. Activate when the user needs to understand complex code, wants to document how something works, needs to explain code to others, is onboarding to a new codebase, or wants to create educational content about code.

Use it when

  • Understanding unfamiliar or complex code
  • Creating documentation for code
  • Onboarding new team members
  • Code review explanations
  • Educational content creation

Inside the source file

  • Explanation Levels
  • AI Prompts by Level
  • Specialized Explanations
  • Documentation Templates
  • Onboarding Guides
  • Best Practices
  • Verification
Read code-explanation-generator/SKILL.md on GitHub

Install this skill individually

npx skills add latestaiagents/agent-skills --skill code-explanation-generator
Codebase Context Buildercodebase-context-builder

Use this skill when preparing context for AI coding assistants. Activate when the user wants to help AI understand their codebase, provide better context for code generation, improve AI responses, create context files, set up CLAUDE.md or similar context documents, or optimize prompts for code tasks.

Use it when

  • Setting up a new project for AI-assisted development
  • AI assistant generates code that doesn't fit your patterns
  • Creating CLAUDE.md, AGENTS.md, or similar context files
  • Preparing context for complex code generation tasks
  • Improving AI understanding of your architecture

Inside the source file

  • The Context Hierarchy
  • Creating CLAUDE.md
  • Building Task-Specific Context
  • Available Agents
  • Shared Context
  • Agent-Specific Instructions
  • UserService Summary
Read codebase-context-builder/SKILL.md on GitHub

Install this skill individually

npx skills add latestaiagents/agent-skills --skill codebase-context-builder
Debug with AIdebug-with-ai

Use this skill when debugging code with AI assistance. Activate when the user has a bug, error, unexpected behavior, needs to understand why code isn't working, wants to analyze stack traces, or is troubleshooting issues in their application.

Use it when

  • Code throws an error you don't understand
  • Feature works sometimes but not always
  • Unexpected behavior that's hard to trace
  • Performance issues or memory leaks
  • Complex stack traces to decipher

Inside the source file

  • The Debugging Framework
  • Step 1: Reproduce
  • Step 3: Understand with AI
  • Step 5: Verify
  • When to Ask AI for Help
Read debug-with-ai/SKILL.md on GitHub

Install this skill individually

npx skills add latestaiagents/agent-skills --skill debug-with-ai
Doc Sync Automationdoc-sync-automation

Use this skill when keeping documentation synchronized with code. Activate when the user needs to update docs after code changes, generate API documentation, create README updates, keep JSDoc/TSDoc in sync, or automate documentation workflows.

Use it when

  • Code changed and docs need updating
  • Generating API documentation from code
  • Creating or updating README files
  • Keeping inline comments/JSDoc current
  • Setting up documentation automation

Inside the source file

  • Documentation Types
  • Inline Documentation (JSDoc/TSDoc)
  • [1.2.0] - 2026-02-04
Read doc-sync-automation/SKILL.md on GitHub

Install this skill individually

npx skills add latestaiagents/agent-skills --skill doc-sync-automation
Refactor with AIrefactor-with-ai

Use this skill when refactoring code with AI assistance. Activate when the user wants to improve code structure, extract functions, reduce complexity, modernize legacy code, apply design patterns, clean up technical debt, or restructure code while preserving behavior.

Use it when

  • Cleaning up messy or complex code
  • Extracting reusable functions/components
  • Modernizing legacy patterns
  • Reducing cyclomatic complexity
  • Applying design patterns

Inside the source file

  • The Safe Refactoring Process
  • Step 1: Characterize with Tests
  • Step 2: Identify Code Smells
  • Step 4: Verify Behavior
  • Refactoring Prompts Library
  • Common Mistakes to Avoid
  • When NOT to Refactor
Read refactor-with-ai/SKILL.md on GitHub

Install this skill individually

npx skills add latestaiagents/agent-skills --skill refactor-with-ai
Test Generation Patternstest-generation-patterns

Use this skill when generating tests with AI assistance. Activate when the user wants to create unit tests, integration tests, generate test cases, improve test coverage, write tests for existing code, or set up testing patterns for their project.

Use it when

  • Adding tests to existing code
  • Creating test suites for new features
  • Improving test coverage
  • Setting up testing patterns for a project
  • Generating edge case tests

Inside the source file

  • The Testing Pyramid
  • Unit Test Generation
  • API/Integration Testing
  • Verification After Generation
Read test-generation-patterns/SKILL.md on GitHub

Install this skill individually

npx skills add latestaiagents/agent-skills --skill test-generation-patterns

Install the skills

With Node.js and npm available, run this in your project’s terminal. The CLI prompts for skills, agent, and installation scope.

npx skills add https://github.com/latestaiagents/agent-skills/tree/main/skills/developer/code-intelligence

Choose scope, then verify discovery

Choose project scope for instructions tied to this repository, or global scope when you want them available across projects. Check the selected agent’s installed skill list, then try a representative task from the example above.

For one skill, open its contents entry and use the individual command. Installation support and skill behavior vary by agent.

Skills CLI documentation and supported agents

Install commands follow the repository’s current branch. The inventory on this page is pinned to the source revision below, so a later install may differ.

Source and review status

This inventory is taken from commit a5e492b, committed November 4, 2026. Skill instructions and bundled integrations have not completed a technical review. The worked example is editorial guidance, separate from the source file contents.

Browse this pack’s source

Engineering notes

Starter recipes using these skills

Choose a different scope