بنقرة واحدة
writing-plans
Use when you have a spec or requirements for a multi-step task, before touching code
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Use when you have a spec or requirements for a multi-step task, before touching code
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output should be a bitmap asset rather than repo-native code or vector. Do not use when the task is better handled by editing existing SVG/vector/code-native assets, extending an established icon or logo system, or building the visual directly in HTML/CSS/canvas.
Use when the user asks how to build with OpenAI products or APIs and needs up-to-date official documentation with citations, help choosing the latest model for a use case, or model upgrade and prompt-upgrade guidance; prioritize OpenAI docs MCP tools, use bundled references only as helper context, and restrict any fallback browsing to official OpenAI domains.
Compress natural language memory files (CLAUDE.md, todos, preferences) into caveman format to save input tokens. Preserves all technical substance, code, URLs, and structure. Compressed version overwrites the original file. Human-readable backup saved as FILE.original.md. Trigger: /caveman:compress <filepath> or "compress memory file"
Use for library, framework, SDK, API, or CLI questions that need current documentation or version-specific behavior.
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Use when asked to simplify code, clean up code, refactor for clarity, improve readability, or review recently modified code for elegance. Focuses on project-specific best practices.
| name | writing-plans |
| description | Use when you have a spec or requirements for a multi-step task, before touching code |
Write comprehensive implementation plans assuming the engineer has zero context for the codebase. Document everything they need to know: which files to touch for each task, testing they might need to check, and how to verify it.
Announce at start: "I'm using the writing-plans skill to create the implementation plan."
Save plans to: docs/plans/YYYY-MM-DD-<feature-name>.md
Plans must preserve both:
Each step is one action (2-5 minutes):
Every plan MUST start with this header:
# [Feature Name] Implementation Plan
**Goal:** [One sentence describing what this builds]
**Architecture:** [2-3 sentences about approach]
**Tech Stack:** [Key technologies/libraries]
## Intent Contract
- **Requested behavior:** [What the user wants to happen]
- **Must remain unchanged:** [What should not change]
- **Non-goals:** [What is explicitly out of scope]
- **Primary success scenario:** [Concrete example of correct outcome]
- **Important edge/failure scenario:** [If relevant]
---
### Task N: [Component Name]
**Files:**
- Create: `exact/path/to/file.py`
- Modify: `exact/path/to/existing.py:123-145`
- Test: `tests/exact/path/to/test.py`
**Step 1: Capture or confirm the Intent Contract**
- Restate requested behavior
- Restate non-goals
- Add one concrete success scenario
**Step 2: Choose verification strategy**
- Prefer the highest-signal proof for the risk
- If TDD is appropriate, say so explicitly
- If TDD is not the best fit, specify the alternative verification path
**Step 3: Write the failing test** *(only when TDD is appropriate)*
```python
def test_specific_behavior():
result = function(input)
assert result == expected
Step 4: Run test to verify it fails (only when TDD is used)
Run: pytest tests/path/test.py::test_name -v
Expected: FAIL with "function not defined"
Step 5: Write minimal implementation
def function(input):
return expected
Step 6: Run relevant verification
Expected: evidence that the requested behavior works and unchanged behavior still holds where relevant
Step 7: Review remaining risks and follow-ups
## Remember
- Exact file paths always
- Complete code in plan (not "add validation")
- Exact commands with expected output
- Reference relevant skills with @ syntax
- DRY, YAGNI, strong verification, risk-based TDD when appropriate
## Verification Guidance
- Prefer one high-signal acceptance or integration test over many low-signal unit tests when it proves behavior better
- Keep strong unit tests for isolated risky logic
- If no new automated test is proposed, explain why existing coverage plus direct verification is enough
- Do not include commit steps unless the user explicitly requested commit workflow
## Execution Handoff
After saving the plan, proceed with the execution approach that best fits task size and risk:
- Use subagent-driven execution when the task is large, risky, or benefits from isolation
- Use lighter execution when the task is small and the main risk is over-orchestration
- Dispatch independent tasks in parallel where useful
- Preserve the Intent Contract through all execution steps