一键导入
implement-all-levels
Enforce complete implementation of all tiers/difficulty levels for tiered features. Prevents partial implementations.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Enforce complete implementation of all tiers/difficulty levels for tiered features. Prevents partial implementations.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Clean up merged and stale branches from local and remote repositories. Use when branch list is cluttered or after merging PRs.
Generate document index files (manifest, bundles, graph, router) for project documentation. Creates docs/.index/ with searchable registry, feature-grouped bundles, cross-reference dependency graph, and query routing. Supports flat mode (generic projects, script-driven) and grouped mode (projects with doc_id frontmatter, Claude-curated).
Comprehensive markdown document review - anchors, accuracy, SSOT, cross-references, and redundancy analysis.
Create well-structured GitHub issues using the 5W1H framework with proper labels and acceptance criteria.
Automate GitHub issue workflow - select issue, create branch, implement, build, test, and create PR.
Interactive review of stale, flagged, and duplicate memories from the latest audit report. Walks entries one at a time with verify / quarantine / edit / skip choices.
| name | implement-all-levels |
| description | Enforce complete implementation of all tiers/difficulty levels for tiered features. Prevents partial implementations. |
| argument-hint | <feature-description> [--solo|--team] |
| user-invocable | true |
| disable-model-invocation | true |
| loop_safe | false |
| iso_class | none |
Enforce complete implementation of all tiers/difficulty levels for tiered features.
/implement-all-levels <feature-description>
Examples:
/implement-all-levels "Add difficulty-based scoring system"
/implement-all-levels "Implement authentication with basic/advanced modes"
/implement-all-levels "Create tiered caching strategy"
/implement-all-levels "Add scoring system" --solo # Force solo mode
/implement-all-levels "Add scoring system" --team # Force team mode
This command enforces an "enumerate-first" workflow to ensure complete coverage of all implementation tiers. It prevents the common pattern of implementing only the Easy tier while neglecting Medium/Hard levels.
--solo or --team flag was providedExtract the flag from $ARGUMENTS (strip it before passing to Step 1).
Use $EXEC_MODE directly.
Auto-recommend based on tier count and complexity:
| Signal | Solo (Recommended) | Team (Recommended) |
|---|---|---|
| Tiers | 2 | 3+ |
| Per-tier complexity | Low (< 100 LOC each) | High (100+ LOC each) |
| Cross-tier dependencies | Minimal | Significant |
Decisive signals → apply silently. When the signals are unambiguous (all point the same direction — e.g. 2 low-complexity tiers with minimal cross-tier dependencies → solo, 3+ high-complexity tiers with significant dependencies → team), set $EXEC_MODE to the recommended mode WITHOUT asking and print a one-line notice, e.g. [Mode: solo — 2 simple tiers; pass --team to override] (or [Mode: team — 3 complex tiers; pass --solo to override]). The user can still override with the --solo/--team flags handled in 0-1.
Conflicting signals → ask. Only when signals genuinely point in different directions (e.g. only 2 tiers but each is high-complexity with significant cross-tier dependencies) use AskUserQuestion to present the choice:
Store the result in $EXEC_MODE (solo | team).
$EXEC_MODE == "solo" → Execute Solo Mode (Steps 1-5 below, unchanged)$EXEC_MODE == "team" → Execute Team Mode Instructions (after Solo Mode)Before writing any code, list ALL implementation tiers:
## Implementation Tiers for: [Feature Description]
| Tier | Description | Status |
|------|-------------|--------|
| Easy | [Basic functionality] | Pending |
| Medium | [Enhanced features] | Pending |
| Hard | [Advanced capabilities] | Pending |
Rules:
Present the tier list and ask for confirmation:
I've identified the following implementation tiers:
1. **Easy**: [description]
2. **Medium**: [description]
3. **Hard**: [description]
Do you want to proceed with implementing all tiers? (yes/no)
Do NOT proceed until user confirms.
Implement tiers in order (Easy -> Medium -> Hard):
## Progress Tracking
| Tier | Status | Notes |
|------|--------|-------|
| Easy | Completed | Implemented basic scoring |
| Medium | In Progress | Adding multipliers |
| Hard | Pending | Combo system pending |
Status Indicators:
After implementing each tier, run relevant tests:
# Example test commands
pytest tests/test_scoring.py -k "easy"
pytest tests/test_scoring.py -k "medium"
pytest tests/test_scoring.py -k "hard"
Requirements:
Generate completion report:
## Implementation Complete
### Summary
- **Feature**: [Feature Description]
- **Total Tiers**: 3
- **Completed**: 3/3 (100%)
### Tier Details
#### Easy Tier
- Files modified: `src/scoring/basic.py`
- Tests: `tests/test_scoring.py::test_easy_*` (5 passed)
#### Medium Tier
- Files modified: `src/scoring/multipliers.py`
- Tests: `tests/test_scoring.py::test_medium_*` (8 passed)
#### Hard Tier
- Files modified: `src/scoring/combos.py`
- Tests: `tests/test_scoring.py::test_hard_*` (12 passed)
### Total Test Coverage
- 25 tests passed
- 0 tests failed
- 0 tests skipped
The following are NOT ALLOWED:
# BAD: Only Easy implemented
def get_score(difficulty: str) -> int:
if difficulty == "easy":
return calculate_easy()
else:
raise NotImplementedError() # Forbidden
# BAD: TODO instead of implementation
def calculate_medium():
# TODO: Implement medium difficulty # Forbidden
pass
# BAD: Empty or placeholder return
def calculate_hard():
return 0 # Placeholder value
return None # Placeholder value
return {} # Empty placeholder
# BAD: No tests for tier
def calculate_hard():
return complex_calculation() # No corresponding test
All implementations MUST follow:
# GOOD: All tiers implemented
def get_score(difficulty: str) -> int:
match difficulty:
case "easy": return calculate_easy()
case "medium": return calculate_medium()
case "hard": return calculate_hard()
# GOOD: Tests for all tiers
class TestScoring:
def test_easy_scoring(self): ...
def test_medium_scoring(self): ...
def test_hard_scoring(self): ...
If implementation is interrupted:
## Implementation Paused
| Tier | Status | Notes |
|------|--------|-------|
| Easy | Completed | Done |
| Medium | In Progress | Blocked: need API design decision |
| Hard | Pending | Waiting for Medium |
### Resume Instructions
- Resolve: API endpoint naming convention
- Continue: Medium tier implementation in `src/api/handlers.py`
See reference/team-mode.md for the complete team mode workflow with per-tier dev/reviewer/doc-writer cycles, task dependency tables, teammate spawn prompts, and fallback procedures.
| Scenario | Action |
|---|---|
| User declines confirmation | Stop and ask for clarification |
| Tests fail for a tier | Fix before proceeding to next tier |
| Blocked by external dependency | Pause, document, and notify user |
| Unclear tier requirements | Ask user for clarification before implementing |
| Team mode: teammate failure | Fallback to Solo Mode from next incomplete tier |
| Team mode: review loop exceeded | Approve tier with remaining items noted (max 2 rounds) |
| Agent Teams not enabled | Fall back to Solo Mode with warning |
This skill is loop_safe: false. It writes code across multiple implementation tiers and may spawn teammate agents. Re-running would re-edit files already implemented or duplicate teammate work, risking conflicting changes. Resume from the first incomplete tier rather than re-invoking the whole skill.