Master backend architectures, REST API design, microservices, and server-side development across multiple languages. Use this as a central index to access specialized sub-skills.
日本語の概要は準備中です。原文の説明を表示しています。
Creates a new Claude Code Skill following best practices. Use when the user wants to create a new skill, add a skill, or asks about writing skills for Claude Code. Fetches latest documentation before generating skill content. New skill. Create a skill.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
Follow this workflow when creating a new Claude Code Skill.
Before writing any skill content, you MUST fetch and read the latest documentation:
Use WebFetch to retrieve these pages and extract key guidelines before proceeding.
Before creating a new skill, first check if the content belongs in an existing skill.
ls -la .claude/skills/
MERGE into existing skill as a rule if:
CREATE new skill if:
When to split existing skills:
Skills should be split when they become too large, causing unnecessary token consumption on every load. Use these criteria:
🚨 SPLIT if any of these apply:
✅ KEEP TOGETHER if:
Token savings formula:
Token Savings = (Skill_Size × Probability_Not_Needed) - Split_Overhead
Where:
- Skill_Size: Total tokens in skill (SKILL.md + all references)
- Probability_Not_Needed: % of tasks that don't need this topic
- Split_Overhead: ~500-1000 tokens (new SKILL.md + metadata)
Real-world examples from our codebase:
| Original | Size | Split Into | Token Savings |
|---|---|---|---|
1k-coding-patterns | 15 KB (9 files) | 6 focused skills | 47-53% in 90% cases |
1k-dev-workflows | 43 KB (3 files) | 3 focused skills | 80% when not doing Sentry |
Splitting strategies:
Conservative split (safe, minimal disruption):
Moderate split (balanced):
Aggressive split (maximum optimization):
| Category | Skill | Merge candidates |
|---|---|---|
| Feature development | 1k-feature-guides | New chains, socket events, notifications, pages, routes |
| Code quality | 1k-code-quality | Lint fixes, pre-commit tasks, documentation |
| Sentry analysis | 1k-sentry-analysis | Crash reports, AppHang, ANR fixes |
| Test versions | 1k-test-version | Upgrade testing, version migration |
| Native module patches | 1k-patching-native-modules | iOS/Android crash fixes, native code patches |
| Error monitoring | 1k-sentry | Error filtering, crash configuration |
| Architecture | 1k-architecture | Project structure, import rules |
| Coding patterns | 1k-coding-patterns | React patterns, TypeScript conventions |
| Performance | 1k-performance | Optimization, concurrent requests, memoization |
| Error handling | 1k-error-handling | Try/catch, error boundaries, user-facing errors |
| State management | 1k-state-management | Jotai atoms, global state |
| Cross-platform | 1k-cross-platform | Platform-specific code |
| Date formatting | 1k-date-formatting | Date/time display, locale formatting |
| i18n | 1k-i18n | Translations, locales |
| Git workflow | 1k-git-workflow | Branching, commits, PRs |
| Dev commands | 1k-dev-commands | Build, test, lint commands |
If merging into existing skill:
Add as a rule file:
.claude/skills/<existing-skill>/
├── SKILL.md # Update quick reference
└── references/rules/
└── <new-topic>.md # Add detailed content here
Update the main SKILL.md:
Example merge:
## Quick Reference
| Feature | Guide | Key Files |
|---------|-------|-----------|
| Existing topic | [existing.md](references/rules/existing.md) | `path/to/files` |
| **New topic** | [new-topic.md](references/rules/new-topic.md) | `path/to/files` | <!-- Add this -->
If splitting an existing skill:
Analyze current skill:
# Check file sizes
ls -lh .claude/skills/<skill-name>/references/rules/
wc -l .claude/skills/<skill-name>/references/rules/*.md
Identify split candidates:
Create new skill directories:
mkdir -p .claude/skills/<new-skill-1>/references/rules
mkdir -p .claude/skills/<new-skill-2>/references/rules
Move files (git tracks as rename):
mv .claude/skills/<old-skill>/references/rules/<topic>.md \
.claude/skills/<new-skill>/references/rules/
Create SKILL.md for each new skill:
Update original skill SKILL.md:
Update cross-references:
# Find all skills that reference the old skill
grep -r "old-skill" .claude/skills/*/SKILL.md
# Update each reference to point to appropriate new skill
Commit with clear message:
git add -A .claude/skills/
git commit -m "refactor: split <old-skill> into focused skills"
If creating a new skill, ask the user:
.claude/skills/) or personal (~/.claude/skills/)?.claude/skills/1k-<skill-name>/
├── SKILL.md # Main entry with quick reference (required)
└── references/
└── rules/
├── topic-1.md # Detailed guide for topic 1
├── topic-2.md # Detailed guide for topic 2
└── topic-3.md # Detailed guide for topic 3
.claude/skills/1k-<skill-name>/
└── SKILL.md # All content in one file
---
name: 1k-skill-name
description: Brief description of what this Skill does and when to use it. Include specific trigger keywords.
allowed-tools: Read, Grep, Glob # Optional: restrict tool access
---
# Skill Title
Brief overview.
## Quick Reference
| Topic | Guide | Key Files |
|-------|-------|-----------|
| Topic 1 | [topic-1.md](references/rules/topic-1.md) | `path/to/files` |
| Topic 2 | [topic-2.md](references/rules/topic-2.md) | `path/to/files` |
## Topic 1 Summary
See: [references/rules/topic-1.md](references/rules/topic-1.md)
**Key points:**
- Point 1
- Point 2
## Topic 2 Summary
See: [references/rules/topic-2.md](references/rules/topic-2.md)
**Key points:**
- Point 1
- Point 2
## Related Skills
- `/1k-related-skill-1` - Description
- `/1k-related-skill-2` - Description
1k- prefix for all OneKey project skills1k-feature-guides, 1k-dev-workflows, 1k-sentryreferences/rules/*.mdAfter gathering requirements and applying best practices:
references/rules/ structureALWAYS run after creating or modifying skills:
# Run token analysis
python3 development/skills-analysis/analyze-skills-tokens.py --sort-by-size
# Check your new skill's token count
python3 development/skills-analysis/analyze-skills-tokens.py --detailed | grep -A 5 "your-skill-name"
Verification checklist:
Action based on results:
| Token Count | Action |
|---|---|
| < 2,000 | ✅ Excellent - proceed |
| 2,000 - 5,000 | ✅ Good - proceed, monitor growth |
| 5,000 - 10,000 | ⚠️ Review: Can topics be split? If highly correlated, proceed with Quick Reference |
| > 10,000 | 🚨 Split before committing |
See development/skills-analysis/SKILLS-TOKEN-MONITORING.md for detailed guidance.
.claude/skills/1k-feature-guides/
├── SKILL.md
└── references/rules/
├── adding-chains.md
├── adding-socket-events.md
├── notification-system.md
└── page-and-route.md
SKILL.md content:
---
name: 1k-feature-guides
description: Feature development guides for OneKey. Use when adding new chains, socket events, notifications, pages, or routes.
---
# Feature Development Guides
## Quick Reference
| Feature | Guide | Key Files |
|---------|-------|-----------|
| Add blockchain chain | [adding-chains.md](references/rules/adding-chains.md) | `packages/core/src/chains/` |
| Add WebSocket events | [adding-socket-events.md](references/rules/adding-socket-events.md) | `packages/shared/types/socket.ts` |
## Adding New Chains
See: [references/rules/adding-chains.md](references/rules/adding-chains.md)
**Key steps:**
1. Implement chain core logic
2. Add chain configuration
3. Update UI components
1k- prefix for OneKey skills❌ BAD: Over-splitting
1k-date-format-display
1k-date-format-parse
1k-date-format-locale
Problem: These are always used together, split overhead > savings
✅ GOOD: Focused skill
1k-date-formatting
├── SKILL.md (Quick Reference)
└── references/rules/date-formatting.md
❌ BAD: Keeping bloated
1k-coding-patterns (15 KB, 9 unrelated files)
Problem: Loading all patterns even when only need one
✅ GOOD: Split by independence
1k-coding-patterns (core patterns only)
1k-date-formatting (independent utility)
1k-i18n (independent utility)
1k-error-handling (independent patterns)
まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Master backend architectures, REST API design, microservices, and server-side development across multiple languages. Use this as a central index to access specialized sub-skills.
日本語の概要は準備中です。原文の説明を表示しています。
在每次回复中使用固定前缀并列出本次实际参考的指令/文件,便于校验是否遵循上下文与规则。
日本語の概要は準備中です。原文の説明を表示しています。
Automate 21risk tasks via Rube MCP (Composio). Always search tools first for current schemas.
日本語の概要は準備中です。原文の説明を表示しています。
Automate 2chat tasks via Rube MCP (Composio). Always search tools first for current schemas.
日本語の概要は準備中です。原文の説明を表示しています。
Arquitecto de Soluciones Principal y Consultor Tecnológico de Andru.ia. Diagnostica y traza la hoja de ruta óptima para proyectos de IA en español.
日本語の概要は準備中です。原文の説明を表示しています。
[00] META. Orchestrate skills into dynamic chains for complex tasks. Analyzes the task, discovers available skills, builds an optimal chain, explains why each skill is needed, and executes step-by-step with user confirmation. Use for any complex task requiring multiple thinking/research/analysis steps. Triggers on "plan this", "how to approach", "what's the strategy", "build a plan", or any multi-step problem requiring skill orchestration.
日本語の概要は準備中です。原文の説明を表示しています。