Writing Plans
by doanchienthangdev
AI agent creates structured implementation plans with task breakdown, dependency mapping, risk assessment, and file-level detail. Use when planning features, projects, or complex implementations.
Skill Details
Repository Files
1 file in this skill directory
name: writing-plans description: AI agent creates structured implementation plans with task breakdown, dependency mapping, risk assessment, and file-level detail. Use when planning features, projects, or complex implementations.
Writing Plans
Quick Start
- Summarize - Executive summary with goals, non-goals, background
- Design - High-level approach, architecture diagram, key decisions
- Break Down - Tasks in 2-4 hour chunks with file locations
- Map Dependencies - Identify critical path and parallel opportunities
- Assess Risks - Likelihood x Impact matrix with mitigations
- Estimate - Three-point estimation with buffers
Features
| Feature | Description | Guide |
|---|---|---|
| Plan Structure | Comprehensive template | Summary, design, tasks, testing, risks |
| Task Breakdown | Manageable work units | 2-4 hours, single owner, clear criteria |
| Dependency Mapping | Sequence and parallelize | Critical path, hard/soft dependencies |
| Risk Assessment | Anticipate problems | Likelihood x Impact matrix |
| Effort Estimation | Realistic timing | Three-point: (O + 4M + P) / 6 |
| File-Level Detail | Exact code locations | New files, modifications, line numbers |
Common Patterns
# Plan Structure
# Plan: [Feature Name]
## Metadata
- Status: Draft | Approved | In Progress
- Estimated Duration: [X days]
- Priority: P0 | P1 | P2
## Goals & Non-Goals
Goals: [What this WILL accomplish]
Non-Goals: [What this will NOT address]
## Design Overview
[High-level approach, architecture diagram]
## Implementation Tasks
### Phase 1: [Foundation] - [X days]
#### Task 1.1: [Name]
- Description: [What]
- Estimate: [X hours]
- Files: `src/file.ts:45-60`
- Dependencies: None
- Acceptance Criteria:
- [ ] [Criterion 1]
- [ ] [Criterion 2]
## Risks & Mitigations
| Risk | Likelihood | Impact | Mitigation |
|------|------------|--------|------------|
| [Risk] | High | High | [Strategy] |
# Dependency Diagram
[START]
|
+----------+----------+
| | |
[Task 1] [Task 2] [Task 3] <- Parallel
| | |
+-----+----+ |
| |
[Task 4] [Task 5]
| |
+-------+-------+
|
[Task 6] <- Integration
|
[COMPLETE]
Critical Path: 1 -> 4 -> 6 (determines min duration)
# Effort Estimation
Three-Point: (Optimistic + 4*MostLikely + Pessimistic) / 6
Example - OAuth Implementation:
- Optimistic: 4 hours (works first try)
- Most Likely: 8 hours (normal dev)
- Pessimistic: 16 hours (issues)
Estimate = (4 + 32 + 16) / 6 = 8.7 hours
Buffers:
- Individual tasks: 20%
- Phase total: 30%
- Project total: 40%
Best Practices
| Do | Avoid |
|---|---|
| Keep tasks to 2-4 hour chunks | Vague tasks ("implement feature") |
| Include exact file locations | Skipping background/context |
| Specify clear acceptance criteria | Ignoring non-functional requirements |
| Map dependencies explicitly | Underestimating integration work |
| Build in buffer for unknowns | Planning more than 2 weeks in detail |
| Include testing in the plan | Hiding risks or uncertainties |
| Review plan with stakeholders | Assuming requirements are complete |
| Update plan as you learn | Forgetting rollback plans |
Related Skills
executing-plans- Follow plans systematicallythinking-sequentially- Structure reasoning for plansbrainstorming-ideas- Generate options for plansverifying-before-completion- Validate plan completion
Related Skills
Attack Tree Construction
Build comprehensive attack trees to visualize threat paths. Use when mapping attack scenarios, identifying defense gaps, or communicating security risks to stakeholders.
Grafana Dashboards
Create and manage production Grafana dashboards for real-time visualization of system and application metrics. Use when building monitoring dashboards, visualizing metrics, or creating operational observability interfaces.
Matplotlib
Foundational plotting library. Create line plots, scatter, bar, histograms, heatmaps, 3D, subplots, export PNG/PDF/SVG, for scientific visualization and publication figures.
Scientific Visualization
Create publication figures with matplotlib/seaborn/plotly. Multi-panel layouts, error bars, significance markers, colorblind-safe, export PDF/EPS/TIFF, for journal-ready scientific plots.
Seaborn
Statistical visualization. Scatter, box, violin, heatmaps, pair plots, regression, correlation matrices, KDE, faceted plots, for exploratory analysis and publication figures.
Shap
Model interpretability and explainability using SHAP (SHapley Additive exPlanations). Use this skill when explaining machine learning model predictions, computing feature importance, generating SHAP plots (waterfall, beeswarm, bar, scatter, force, heatmap), debugging models, analyzing model bias or fairness, comparing models, or implementing explainable AI. Works with tree-based models (XGBoost, LightGBM, Random Forest), deep learning (TensorFlow, PyTorch), linear models, and any black-box model
Pydeseq2
Differential gene expression analysis (Python DESeq2). Identify DE genes from bulk RNA-seq counts, Wald tests, FDR correction, volcano/MA plots, for RNA-seq analysis.
Query Writing
For writing and executing SQL queries - from simple single-table queries to complex multi-table JOINs and aggregations
Pydeseq2
Differential gene expression analysis (Python DESeq2). Identify DE genes from bulk RNA-seq counts, Wald tests, FDR correction, volcano/MA plots, for RNA-seq analysis.
Scientific Visualization
Meta-skill for publication-ready figures. Use when creating journal submission figures requiring multi-panel layouts, significance annotations, error bars, colorblind-safe palettes, and specific journal formatting (Nature, Science, Cell). Orchestrates matplotlib/seaborn/plotly with publication styles. For quick exploration use seaborn or plotly directly.
