best-practice-core
2
总安装量
1
周安装量
#69239
全站排名
安装命令
npx skills add https://github.com/cantagestudio/cosmicatlaspacker --skill best-practice-core
Agent 安装分布
amp
1
opencode
1
cursor
1
kimi-cli
1
codex
1
github-copilot
1
Skill 文档
Best Practice Core
Extracts core best practices for a topic and formats them as a minimal, keyword-focused tree.
Purpose
Extract essential best practices for implementation tasks and format them as ultra-concise tree structures for quick reference during development.
When to Use
Invocation Timing:
- During task planning phase (before implementation)
- When writing subtasks in
Docs/{name}_Task.mddocuments - BEFORE Worker agents start implementation
Output Location:
- Written directly under each subtask in Task document
- Acts as quick reference for developers/agents
Output Rules (STRICT ENFORCEMENT)
Format Constraints
| Rule | Constraint |
|---|---|
| Max depth | 3 levels |
| Max children per node | 5 items |
| Leaf node max length | 12 words OR 60 characters |
| Node format | Noun phrases/keywords ONLY |
| Duplicates | Merge into single item |
| Tree format | Markdown tree ONLY (no mixing) |
Zero Tolerance Items
â FORBIDDEN:
- Intro paragraphs, conclusions, or commentary
- Full sentences in leaf nodes
- Explanatory text outside the tree
- Mixed tree formats (ASCII + Markdown)
- Depth > 3 or children > 5
- Duplicate items
â REQUIRED:
- ONLY output the tree structure
- Use noun phrases: “Error boundary setup”, “State validation logic”
- Keep leaf nodes concise: max 12 words
- Merge similar concepts
- Single tree format (Markdown bullets)
Example Output
Topic: Implementing User Authentication
- User Authentication
- Security
- Password hashing (bcrypt/argon2)
- JWT token management
- HTTPS-only cookies
- Validation
- Input sanitization
- Email format check
- Rate limiting
- Error Handling
- Failed login attempts tracking
- Account lockout mechanism
- Clear error messages (no data leaks)
Workflow
When invoked with a topic:
- Identify Core Areas: Extract 2-5 main categories for the topic
- Extract Best Practices: For each category, list 2-5 key practices
- Format as Keywords: Convert to noun phrases (no full sentences)
- Verify Constraints: Check depth ⤠3, children ⤠5, length ⤠12 words
- Merge Duplicates: Combine similar/overlapping items
- Output Tree ONLY: No intro, no conclusion, just the tree
Integration with Task Documents
â CRITICAL: Task Document Format Protection
Best Practiceë ìë¸íì¤í¬ ìëì ìì¹íë, Kanban íìê° íì¤í¬ë¡ ì¸ìíì§ ìë íìì ì¬ì©í´ì¼ í©ëë¤.
â FORBIDDEN – íì´í 리ì¤í¸ ì¬ì©:
- [ ] Design login UI layout
<!-- Best Practice Tree -->
- Login UI â íìê° íì¤í¬ë¡ ì¤ì¸ì!
- Layout
â REQUIRED – 4-space ë¤ì¬ì°ê¸° + ì½ëë¸ë¡ ëë ì¸ì©ë¸ë¡ ì¬ì©:
## Worker1
- [ ] Implement user authentication #auth !high Deadline(2025:01:15)
- [ ] Design login UI layout
```
[Best Practice]
· Layout: Mobile-first responsive, Focus management, Password toggle
· Validation: Real-time feedback, Clear error states
· Security: No password in URL, Auto-logout on idle
```
- [ ] Create API integration
```
[Best Practice]
· Request: Token refresh logic, Retry with backoff
· Error: Network failure degradation, 401/403 redirect
· Security: Secure token storage, XSS/CSRF protection
```
Format Rules
| Rule | Constraint |
|---|---|
| ìì¹ | ìë¸íì¤í¬ ë°ë¡ ìë (4-space ë¤ì¬ì°ê¸°) |
| íì | ì½ëë¸ë¡(“`) ëë ì¸ì©ë¸ë¡(>) ì¬ì© |
| ìì 문ì | ì ë - ëë - [ ]ë¡ ìì ê¸ì§ |
| 구ë¶ì | ì¤ì (·) ëë íì´í(â) ì¬ì© |
| ê¸¸ì´ | ì¹´í ê³ ë¦¬ë¹ 1ì¤, ì´ 3~5ì¤ ì´ë´ |
Alternative Format (ì¸ì©ë¸ë¡)
- [ ] Design login UI layout
> **BP** · Layout: Mobile-first · Validation: Real-time feedback · Security: No password in URL
Usage Notes
- Concise over Complete: Focus on critical practices, not exhaustive lists
- Actionable Keywords: Use phrases developers can immediately act on
- Context-Aware: Tailor to the specific subtask context (UI vs API vs DB)
- No Duplication: If practice applies to multiple subtasks, mention once in parent
Common Topics
| Topic Type | Core Areas to Cover |
|---|---|
| UI Components | Layout, Accessibility, State, Events, Performance |
| API Integration | Request/Response, Error Handling, Caching, Security |
| Database Operations | Schema Design, Query Optimization, Transactions, Validation |
| State Management | Data Flow, Mutations, Side Effects, Persistence |
| Testing | Coverage, Edge Cases, Mocking, Performance |
Remember: Output ONLY the tree. No explanations.