Using agent skills
Production-grade AI agent skills — enhanced alternative to addyosmani/agent-skills. 23 lifecycle skills for Define, Plan, Build, Verify, Review, Ship. Works with OpenCode, Claude Code, Codex, Cursor, Gemini CLI.From the repository description
npx -y skills add codexskills/agent-forge --skill using-agent-skillsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
5.9 KB, ~1.4k tokens by cl100k_base, as published. Nobody here has run it
Using Agent Skills
Description
Meta-skill that governs how all other skills are discovered and invoked. Use when starting a session or when you need to discover which skill applies to the current task.
Purpose
This meta-skill is the entry point for the agent-forge system. It tells agents how to:
- Discover which skills exist in the project
- Determine which skill to use for a given task
- Resolve conflicts when multiple skills could apply
- Initialize a session with the right context
- Follow shared operating rules across all skills
Skill Discovery
Discovery Order
When an agent starts a session, it should:
- Scan
skills/directory for allSKILL.mdfiles - Read each skill's description field to understand its purpose
- Build a mental map of available capabilities
- Trigger the correct skill(s) for the current task
Directory Structure
skills/
ci-cd-and-automation/
SKILL.md
deprecation-and-migration/
SKILL.md
documentation-and-adrs/
SKILL.md
shipping-and-launch/
SKILL.md
using-agent-skills/ ← this skill
SKILL.md
Skill Metadata
Each SKILL.md must include:
- Description: One-paragraph summary of when to use this skill
- Core Philosophy: The guiding principle behind the skill's approach
- Principles: Key rules and patterns the skill enforces
- Usage: How to invoke the skill in practice
Trigger Keywords
Skills should define trigger keywords in their descriptions. For example:
- CI/CD: "set up CI", "pipeline", "GitHub Actions", "deploy", "quality gate"
- Deprecation: "deprecate", "migrate", "sunset", "remove", "backward compat"
- Documentation: "ADR", "documentation", "doc review", "API docs"
- Shipping: "launch", "release", "rollout", "rollback", "deploy to production"
Shared Operating Rules
These rules apply to ALL skills in the agent-forge system:
Rule 1: Prefer Existing Patterns
Before writing new code, search the codebase for existing patterns. Match style, conventions, and idioms. Do not introduce new frameworks or patterns without an ADR.
Rule 2: Write Tests
Every code change must include tests. Test behavior, not implementation. Follow the project's testing patterns (see references/testing-patterns.md).
Rule 3: Document Decisions
Significant decisions must be recorded as ADRs (see documentation-and-adrs skill). If a decision is hard to reverse, write an ADR.
Rule 4: Ship Safely
Use feature flags for risky changes. Follow the staged rollout process (see shipping-and-launch skill). Always have a rollback plan.
Rule 5: Delete Code
Code is liability. Remove dead code, commented-out code, and unnecessary abstractions. See deprecation-and-migration for structured removal.
Rule 6: Review Before Merge
Every change must be reviewed. Use the code-reviewer agent persona for structured reviews. No blind merges.
Rule 7: Fail Fast
Prefer early failure over silent errors. Add assertions, validate inputs, and crash on invalid states.
Rule 8: No Guessing
If you don't know something, search the codebase, check documentation, or ask. Do not fabricate APIs, functions, or behaviors.
Conflict Resolution
When multiple skills could apply to a task, resolve conflicts in this order:
Priority Matrix
- Safety (shipping-and-launch, security references)
- Correctness (test-driven-development, code-reviewer)
- Clarity (documentation-and-adrs, code-simplification)
- Performance (performance-optimization, performance-checklist)
- Velocity (ci-cd-and-automation, incremental-implementation)
Resolution Process
- Identify all skills relevant to the task
- Check for direct conflicts (e.g., "add more code" vs "delete code")
- Apply the priority matrix: safety > correctness > clarity > performance > velocity
- If still ambiguous, ask the user for clarification
- Document the resolution in comments or ADR
Handling Overlapping Skills
- When skills overlap (e.g., both
test-driven-developmentandincremental-implementationapply), apply both - Use the higher-priority skill's constraints first
- Combine principles where they don't conflict
- Flag contradictions to the user
Session Initialization
New Project Setup
- Scan for existing
agent-forge/structure - Check which skills are present
- Read the project README and setup guide
- Initialize with context: project type, language, frameworks
- Load all applicable skills
Existing Project Work
- Read any active ADRs for recent decisions
- Check
.claude/commands/for project-specific commands - Load the skill(s) matching the user's request
- Apply shared operating rules
- Begin work with the first applicable principle
Resetting Context
When switching between unrelated tasks:
- Unload current skill context
- Clear any task-specific state
- Load skills for the new task
- Verify the new task's constraints
Skill Development Guidelines
Creating a New Skill
- Create a directory under
skills/with a descriptive name - Write
SKILL.mdwith all required sections:- Description (one paragraph)
- Core Philosophy (one sentence)
- Principles (numbered list with explanations)
- Usage (how to invoke)
- Add trigger keywords to the description
- Test the skill by running through a scenario
- Add references if needed in
references/
Skill Quality Standards
- Minimum 150 lines of substantive content
- Real, actionable guidance (not generic advice)
- Code examples where applicable
- Templates for common tasks
- Clear scope definition
Skill Versioning
Skills are versioned by directory name:
skills/
ci-cd-and-automation/ ← current version
ci-cd-and-automation-v1/ ← archived version
Breaking changes to a skill should create a new version directory.
Usage
Load this meta-skill at the start of every session. Use it to discover available skills, apply shared operating rules, resolve conflicts between skills, and initialize proper context for the task at hand.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.