Claude-skill-registry-data meta-agent-skills
Proactively analyzes the codebase and generates specialized subagents and skills to standardize agentic workflows.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry-data
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry-data "$T" && mkdir -p ~/.claude/skills && cp -r "$T/data/meta-agent-skills" ~/.claude/skills/majiayu000-claude-skill-registry-data-meta-agent-skills && rm -rf "$T"
manifest:
data/meta-agent-skills/SKILL.mdsource content
Meta-Agent Skills
Purpose
This skill serves as a "Meta-Skill" that bootstraps the Agentic Makefile environment. It empowers the Agent to analyze the repository's technology stack (e.g., Python/Poetry, Node/Next.js, Go), detect the AI environment (Claude Code, Cursor, Gemini), and generate specialized, ready-to-use Agent Skills and Subagents.
When to Use
- When initializing a new repository for AI agent use.
- When the technology stack changes (e.g., switching from Pip to Poetry).
- When you want to reset or update the standard agent capabilities.
- When asked to "setup skills", "maintain agent rules", or "install standard agents".
Instructions
-
Detect AI Environment:
- Check for
,.claude/
, or.cursor/
directories to determine the target AI platform..gemini/ - Claude Code Detection: If
exists, Claude Code is a primary target..claude/- Prefix Selection: Claude Code does not support recursive search for skills/agents. You MUST use a flat structure with a prefix to identify generated components (e.g.,
,ma-
,meta-
).m- - User Consultation: Present 3-5 candidate prefixes (e.g.,
,ma-
,meta-agent-
,m-
,agent-
) and ask the user to choose one or provide their own.gen-
- Prefix Selection: Claude Code does not support recursive search for skills/agents. You MUST use a flat structure with a prefix to identify generated components (e.g.,
- Cursor Detection: If
exists, Cursor is a primary target. Cursor supports recursive search..cursor/ - Default: If ambiguous, prioritize
as the standard, following the flat structure protocol..claude/
- Check for
-
Analyze Codebase:
- Review Documentation: Read
,README.md
,CONTRIBUTING.md
, or other relevant documentation to understand the project structure, development workflows, and any specific commands recommended for the codebase.DEVELOPMENT.md - Detect Sub-Projects: Recursively search for "logical project boundaries" in sub-directories. Look for files like
(Node.js),package.json
(Go),go.mod
orpyproject.toml
(Python),requirements.txt
ormain.tf
(Terraform), etc.*.tf - Detect Multi-Layered Builds: Search for files that indicate a layered build or deployment process, such as
,Dockerfile
,docker-compose.yml
,Earthfile
,Tiltfile
, orSkaffold.yaml
.kustomization.yaml - Map Tech Stack per Project: For each detected sub-project, determine its specific tech stack and how to run builds, linters, and tests within its directory.
- Analyze Layered Commands: Categorize commands into logical layers (e.g.,
for compilation,App
for image building,Docker
for deployment or local orchestration).Infra - Identify Test Types: Look for
,tests/unit
,tests/integration
,cypress
, etc., to distinguish between Unit, Integration, and E2E tests for each project.playwright - Identify Security Tools: Check if
,trivy
, or other security tools are configured or available.osv-scanner - Identify Setup Scripts: Look for
config,pre-commit
, or setup scripts to include inMakefile
.setup-dev-env
- Review Documentation: Read
-
Verify Commands:
- Before generating skills, proactively verify that the detected commands work in their respective project environments.
- Run
,command --help
, or similar check for each primary command in the correct working directory.command --version - If a command fails or is missing, investigate alternatives or suggest installation in the final report.
-
Generate Skills & Agents:
- Read the templates located in
andassets/templates/skills/
.assets/templates/agents/ - Strict Policy: You MUST NOT generate any subagent or Agent Skill if its corresponding template does not exist in
orassets/templates/agents/
.assets/templates/skills/ - Instantiate Templates:
- For each skill template, populate the Commands table with the verified commands for all detected sub-projects.
- Build Separation: Distinguish between project compilation (App layer) and container image building (Docker layer).
- Use
template for compilation/build commands (e.g.,build-project
,npm run build
).go build - Use
template for containerization commands (e.g.,build-container-image
,docker build
).earthly --push +docker
- Use
- Each row in the table MUST include the
,Order
,Component
(relative to root),Path
(e.g., App, Docker),Layer
, andCommand
.Description - Ensure the order of commands is logical (e.g., compile app before building docker image).
- Write the generated files to the target directory based on the platform:
- Claude Code (Flat Structure):
- Skills:
(e.g.,.claude/skills/<prefix><skill-name>/SKILL.md
)..claude/skills/ma-lint-fix/SKILL.md - Agents:
(e.g.,.claude/agents/<prefix><agent-name>.md
)..claude/agents/ma-maintainer-agent.md
- Skills:
- Cursor (Nested Structure):
- Skills:
(e.g.,.cursor/skills/meta-agent-skills/<skill-name>/SKILL.md
)..cursor/skills/meta-agent-skills/lint-fix/SKILL.md - Agents:
(e.g.,.cursor/agents/meta-agent-skills/<agent-name>.md
)..cursor/agents/meta-agent-skills/maintainer-agent.md
- Skills:
- Claude Code (Flat Structure):
- Bind Skills to Agents:
- For each generated agent, identify the
required from its template frontmatter.skills - Synchronize the
section betweenCapabilities
and<!-- SKILLS_START -->
markers.<!-- SKILLS_END --> - Link Resolution:
- Claude Code: Use links like
.[lint-fix](../skills/<prefix>lint-fix/SKILL.md) - Cursor: Use links like
.[lint-fix](../../skills/meta-agent-skills/lint-fix/SKILL.md)
- Claude Code: Use links like
- Ensure each mentioned skill is linked to its respective
file.SKILL.md
- For each generated agent, identify the
- Note: For
skills, only generate the ones that match the detected test types.test-*
- Read the templates located in
-
Verify & Fix Generated Output:
- Audit: Read a sample of the generated
files (prioritizeSKILL.md
andlint-fix
).build-project - Verify Templates: Verify that every generated subagent and Agent Skill has a corresponding template in the assets directory. If you find any generated file that does not have a corresponding template, you MUST delete it.
- Check for Placeholders: Ensure no unpopulated templates like
remain in the generated files.{{ command }} - Path Validation: Verify that the
paths specified in the tables actually exist relative to the workspace root.Working Directory - Immediate Remediation: If errors, broken links, or missing information are found, use editing tools to fix the generated files immediately.
- Audit: Read a sample of the generated
-
Execute Generated Skills & Agents:
- Smoke Test: Execute a subset of the generated skills to verify their real-world functionality.
- Priority Skills: Run
(if applicable), followed bysetup-dev-env
,lint-fix
, andbuild-project
.build-container-image - Verify Subagents: If a subagent was generated, consider invoking it for a simple query (e.g., "Analyze the current state of the codebase").
- Error Handling: If execution fails, analyze the output, fix the generated skill/agent, and re-run until successful.
-
Report:
- List the skills and agents created.
- Mention which stack and test types were detected.
- Report the results of command verification (which commands are confirmed and which might need setup).
- Report on the Verification & Fix results (e.g., "Verified all generated skills; fixed 1 path error in lint-fix").
- Report on the Execution results (e.g., "Successfully ran lint-fix, build-project, and build-container-image skills").
Capabilities Generated
- Core Skills:
(includes type checking),lint-fix
,build-project
,build-container-image
,update-deps
,docs-gen-readme
,security-scan
,setup-dev-env
,add-skill-templates
,add-agent-templates
.mend-agent-templates - Test Skills:
,test-unit
,test-integration
.test-e2e - Subagents:
,codebase-maintainer-agent
,security-auditor-agent
,qa-engineer-agent
.template-factory-agent