用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/HoangNguyen0403/agent-skills-standard --skill skill-creator命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Enforce SOLID principles, guard-clause style, function size limits, and intention-revealing naming across all languages. Use when refactoring for readability, applying clean-code patterns, reviewing naming conventions, or reducing function complexity.
Conduct high-quality, persona-driven code reviews. Use when reviewing PRs, critiquing code quality, or analyzing changes for team feedback.
Maximize context window efficiency, reduce latency, and prevent lost-in-middle issues through strategic masking and compaction. Use when token budgets are tight, tool outputs overflow the context, conversations drift from intent, or latency spikes from cache misses.
基于 SOC 职业分类
正在显示 SKILL.md
| name | Skill Creator |
| description | Standards for creating new High-Density Agent Skills with optimal token economy. |
| metadata | {"labels":["meta","standard","instruction-design","prompt-engineering","token-efficient"],"triggers":{"files":["SKILL.md","metadata.json"],"keywords":["create skill","new standard","writing rules","high density","token economy"]}} |
Strict guidelines for authoring High-Density Agent Skills. Maximize information density while minimizing token consumption through progressive disclosure and strategic content organization.
Every word costs tokens. Design skills for maximum information/token ratio:
references/ folderLevel 1: Metadata (100 words) → Always loaded
Level 2: SKILL.md Body (100 lines) → When triggered
Level 3: References/Scripts/Assets → As needed
skills/
└── {category}/ # e.g., "flutter" (lowercase)
└── {skill-name}/ # e.g., "bloc-state-management" (kebab-case)
├── SKILL.md # Core Logic (High Density, <100 lines)
├── scripts/ # Executable code (Deterministic tasks)
│ └── automation.py
├── references/ # Heavy Examples (Lazy loaded)
│ ├── patterns.md
│ └── examples.md
└── assets/ # Output templates (Never loaded)
└── template.json
Imperative Compression: Start with verbs. No "Please/You should".
Token Economy: Maximize info/token ratio.
Progressive Disclosure: Essential info first, details on-demand.
Context-Aware Design: Different agents have different limits.
Required sections in SKILL.md:
Frontmatter (Mandatory): Metadata for triggering (100 words max)
---
name: Skill Name
description: What it does + when to use it (triggers activation)
metadata:
labels: [tag1, tag2]
triggers:
files: ['**/*.ext']
keywords: [term1, term2]
---
Priority: P0 (Critical), P1 (Standard), or P2 (Optional)
Structure: ASCII tree of expected file layout
Guidelines: Bullet points of "Do this" (imperative)
Anti-Patterns: Bullet points of "Don't do this"
Reference Links: Links to references/ files (lazy loading)
| Element | Limit | Action if Exceeded |
|---|---|---|
| SKILL.md total | 100 lines | Extract to references/ |
| Inline code block | 10 lines | Move to references/ |
| Anti-pattern item | 15 words | Compress to imperative |
| Description after Priority | 0 lines | Remove (use frontmatter) |
| Tables | 8 rows | Extract to references/ |
| Explanatory sections | 10 lines | Extract to references/ |
When to use: Deterministic, repeated tasks Benefits: Never loaded into context, executed directly Examples: Code generators, formatters, validators
When to use: Detailed examples, API docs, complex patterns Benefits: Loaded only when needed, keeps SKILL.md lean Examples: Implementation patterns, error handling guides
When to use: Boilerplate files, images, configs Benefits: Never loaded, copied to output as-needed Examples: Project templates, config files, icons
Before finalizing, verify:
description after ## Priority**Bold**: \More Bold`` - causes visual noiseFormat: **No X**: Do Y[, not Z]. [Optional context, max 15 words total]
Examples:
❌ Verbose (24 words):
- **No Manual Emit**: `**Avoid .then()**: Do not call emit() inside Future.then; always use await or emit.forEach.`
✅ Compressed (11 words):
- **No .then()**: Use `await` or `emit.forEach()` to emit states.
❌ Verbose (18 words):
- **No UI Logic**: `**Logic in Builder**: Do not perform calculations or data formatting inside BlocBuilder.`
✅ Compressed (9 words):
- **No Logic in Builder**: Perform calculations in BLoC, not UI.
Extract to references/ when:
Use the enhanced template below to generate new skills: references/TEMPLATE.md
For comprehensive lifecycle guidance: references/lifecycle.md
For resource organization patterns: references/resource-organization.md