1-my-skill
Create a new Claude Agent Skill following Anthropic's best practices with prompt engineering guidance
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Create a new Claude Agent Skill following Anthropic's best practices with prompt engineering guidance
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Apply idiomatic, well-structured Python development practices. Use when writing, reviewing, or refactoring Python code. Covers type annotations, package management with uv, Pydantic DTOs, Typer CLIs, pytest patterns, PEP 8 style, architecture, and type-driven design.
How to manage Python dependencies with UV — inline script metadata (PEP 723), project mode, tool running, and when to use each approach. Always use UV; never pip directly.
Use when receiving code review feedback (especially if unclear or technically questionable), when completing tasks or major features requiring review before proceeding, or before making any completion/success claims. Covers four practices — receiving feedback with technical rigor, requesting reviews via code-reviewer subagent, verification gates requiring evidence before claims, and security/API-compat awareness. Essential for subagent-driven development, pull requests, and preventing false completion claims.
Synthesize knowledge from multiple sources into Zettelkasten notes for Logseq. Use when creating wiki pages, integrating academic research, or building interconnected knowledge with [[links]] and
Survey a Google Drive's actual folder structure, apply a PARA-lite organization framework, and produce (then safely execute) a concrete reorganization plan — deduping, sweeping root-level clutter, and fixing misnested folders.
Idiomatic review for Rust — async/Tokio daemon design, ports-and-adapters trait boundaries, and thiserror/anyhow error handling. Use when reviewing or writing Rust code that defines async trait "ports" (dependency-inversion boundaries), runs a single-threaded Tokio daemon (current_thread runtime + LocalSet/spawn_local), or crosses a wire/domain type boundary. Covers async fn in traits vs async-trait, Rc/RefCell vs Arc/Mutex, tokio::select! cancel-safety, blocking calls in async context, thiserror-vs-anyhow error typing, wire/domain type separation, and common anti-patterns (clone in hot loops, overly generic port bounds). NOT for pure performance/profiling work (see rust-profiling, rust-perf-tuning, rust-memory-optimization, rust-parallel-processing) or unsafe/CLI/wasm-bindgen review (no dedicated skill yet — use the sdd:6-verify research-agent fallback for those).
| description | Create a new Claude Agent Skill following Anthropic's best practices with prompt engineering guidance |
Create a new Claude Agent Skill following Anthropic's best practices for progressive disclosure, token optimization, and effective skill design.
This command guides you through creating a production-quality Agent Skill based on:
Skill to create: ${1:-my-skill} Purpose: ${2:-Describe what this skill does} Location: ${3:-project} (Options: project, user)
Before creating any files, use the prompt-engineering agent to design the skill:
Design an Agent Skill with the following requirements:Skill Name: ${1:-my-skill} Purpose: ${2:-Describe what this skill does}
Design Requirements:
Name and Description Optimization
{group}-{name} prefix convention matching the existing librarycode, github, git, infra, ui, pm, meta, knowledge, db, jj — use a new group only if none fitpython-development, github-pr, github-org-team-activity, infra-homebrew, ui-playwright, pm-product-management, meta-prompt-engineeringgithub-org-team-activity, python-development, infra-homebrewactivity (missing group prefix), github (no descriptive suffix), comprehensive-github-org-activity-tracker (too long)Progressive Disclosure Architecture
Hybrid Knowledge + Code Strategy
Token Optimization
Security Considerations
Directory Structure
${1:-my-skill}/
├── SKILL.md # REQUIRED
├── reference.md # Optional: technical documentation
├── examples.md # Optional: usage examples
├── scripts/ # Optional: executable code
│ ├── process.py
│ └── utils.js
└── resources/ # Optional: templates, data files
└── template.xlsx
Deliverables:
Based on the prompt-engineering agent's design, create the skill directory:
Location determination:
.claude/skills/${1:-my-skill}/ (visible to all project users)~/.claude/skills/${1:-my-skill}/ (personal, available across all projects)Create directories:
# For project skill
mkdir -p .claude/skills/${1:-my-skill}/{scripts,resources}
# For user skill
mkdir -p ~/.claude/skills/${1:-my-skill}/{scripts,resources}
File: SKILL.md in the skill directory
Template structure (use the prompt-engineering agent's output):
---
name: ${1:-my-skill}
description: [Use the optimized description from prompt-engineering agent]
---
# ${1:-My Skill Title}
[Brief introduction explaining what this skill does and when to use it]
## Core Instructions
### When to Use This Skill
- Use case 1: [specific scenario]
- Use case 2: [specific scenario]
- Use case 3: [specific scenario]
### Main Workflow
1. **Step 1**: [First major step]
- Substep details
- Considerations
2. **Step 2**: [Second major step]
- Substep details
- Considerations
3. **Step 3**: [Third major step]
- Substep details
- Considerations
### Key Principles
- **Principle 1**: Explanation
- **Principle 2**: Explanation
- **Principle 3**: Explanation
### Best Practices
- Practice 1
- Practice 2
- Practice 3
### Common Pitfalls
- ❌ **Pitfall 1**: What to avoid and why
- ❌ **Pitfall 2**: What to avoid and why
### Progressive Context Loading
- For detailed technical reference, see: `reference.md`
- For code examples, see: `examples.md`
- For executable scripts, see: `scripts/` directory
### Security Notes
[If applicable: input validation, API key handling, data sanitization]
## Token Budget
Estimated tokens: [from prompt-engineering agent analysis]
Quality standards:
Based on the prompt-engineering agent's design, create additional files:
Purpose: Technical documentation, API references, detailed specifications Load trigger: When Claude needs deep technical details Content: Comprehensive reference material that would bloat SKILL.md
Purpose: Code examples, sample outputs, usage demonstrations Load trigger: When Claude needs concrete examples Content: Working examples showing skill usage patterns
Purpose: Executable code for deterministic operations Design principles:
Example Python script structure:
#!/usr/bin/env python3
"""
Brief description of what this script does.
This script serves dual purposes:
1. Executable tool Claude can run directly
2. Reference documentation Claude can read for understanding
"""
from typing import Dict, List, Optional
import json
import sys
def safe_operation(value: float, divisor: float) -> Optional[float]:
"""
Safely perform operation with error handling.
Args:
value: Input value
divisor: Divisor value
Returns:
Result or None if error
"""
try:
if divisor == 0:
return None
return value / divisor
except Exception as e:
print(f"Error: {e}", file=sys.stderr)
return None
def main():
"""Main entry point for script execution."""
# Implementation
pass
if __name__ == "__main__":
main()
Purpose: Templates, data files, configuration files Examples: Excel templates, JSON schemas, sample datasets
Create test cases to validate the skill:
Representative Tasks
Token Usage Analysis
Error Scenarios
Security Audit
Monitor and refine:
Usage Patterns
Token Optimization
Collaborative Refinement
Create skill documentation:
README.md in skill directory:
# ${1:-My Skill}
${2:-Brief description}
## Installation
**Project-wide** (shared with team):
\`\`\`bash
cp -r ${1:-my-skill} /path/to/project/.claude/skills/
\`\`\`
**Personal** (available across all projects):
\`\`\`bash
cp -r ${1:-my-skill} ~/.claude/skills/
\`\`\`
## Usage
This skill is automatically discovered by Claude when relevant.
**Triggers**: [Description of when Claude should use this skill]
**Example tasks**:
- Task example 1
- Task example 2
- Task example 3
## Structure
- \`SKILL.md\`: Core instructions (loaded when skill is relevant)
- \`reference.md\`: Technical documentation (loaded for detailed queries)
- \`scripts/\`: Executable code for deterministic operations
- \`resources/\`: Templates and data files
## Security
- ✅ No hardcoded secrets
- ✅ Input sanitization in scripts
- ✅ External connections documented
## Version History
- v1.0.0 (YYYY-MM-DD): Initial release
## Contributing
[Instructions for contributing improvements]
Consult these examples for patterns:
Financial Statement Analyzer (hybrid knowledge + code)
Brand Guidelines Enforcer (organizational knowledge capture)
Financial Modeling (complex workflows)
After creating the skill, verify:
Skill location:
.claude/skills/${1:-my-skill}/~/.claude/skills/${1:-my-skill}/Next steps: