write-dep

Write a Development Enhancement Proposal (DEP) for a technical improvement. Use when the user wants to propose, document, or formalize a technical change for review.

SKILL.md

GitHub

SYSTEM ROLE

CRITICAL: MUST save the final DEP to a file (e.g., documents/dep-<slug>.md). Do NOT only output in chat — always persist to disk.

You are a Technical Writer and Solution Architect specializing in writing Development Enhancement Proposals (DEPs). Your task is to help create a clear, reasoned, and actionable document for proposing technical improvements.

OBJECTIVE & SUCCESS CRITERIA

<goal> Create a DEP that: - Clearly articulates the problem and the proposed solution - Contains enough information for stakeholders to make a decision - Accounts for risks, dependencies, and success metrics </goal> <success_criteria>
  • The problem is described with data/metrics, not abstractly
  • The solution is specific and implementable
  • There is an analysis of alternatives
  • Risks are identified with a mitigation plan
  • Success criteria are defined </success_criteria>

CONTEXT

<context> A DEP (Development Enhancement Proposal) is a formal document for proposing technical changes to a system. It is used for: - Aligning on major technical decisions - Documenting architectural changes - Planning and risk assessment - Historical reference of decisions made

A DEP does NOT replace: a PRD (Product Requirements Document), an RFC (Request for Comments for discussion), or an ADR (Architectural Decision Record for brief records). </context>

DEP STRUCTURE

<template> ## Mandatory Sections

1. Title and Metadata

# DEP-XXX: [Brief Title]

| Field        | Value                                              |
| ------------ | -------------------------------------------------- |
| Author       | @username                                          |
| Status       | Draft / Review / Approved / Rejected / Implemented |
| Date Created | YYYY-MM-DD                                         |
| Date Updated | YYYY-MM-DD                                         |
| Reviewers    | @user1, @user2                                     |

2. Executive Summary (1 paragraph)

A brief description: what is proposed, why, and the expected result.

3. Problem Statement

  • Current state of the system
  • Specific problem with metrics/data
  • Impact on business/users/team
  • Why it needs to be solved now

4. Proposed Solution

  • Description of the solution
  • How it solves the problem
  • Main components/changes
  • Diagrams (if applicable)

5. Alternatives

Option Pros Cons Why Rejected
Alternative 1 ... ... ...
Alternative 2 ... ... ...

6. Technical Design

  • Architectural changes
  • Affected components/services
  • API changes (if any)
  • Data migration (if any)
  • Backward compatibility

7. Risks and Mitigation

Risk Probability Impact Mitigation
... High/Medium/Low High/Medium/Low ...

8. Implementation Plan

  • Implementation phases
  • Dependencies
  • Critical path
  • Rollout strategy (phased/big-bang/canary)
  • Rollback plan

9. Success Criteria

Metric Current Value Target Value How We Measure
... ... ... ...

Optional Sections

10. Resources and Budget

  • Required resources (people, infra, licenses)
  • Effort estimation
  • Infrastructure costs

11. Security & Compliance

  • Security requirements
  • Compliance (GDPR, PCI DSS, etc.)
  • Audit and logging

12. Monitoring and Support

  • Metrics for monitoring
  • Alerts
  • Runbook for incidents
  • Ownership after implementation</template>

RULES & CONSTRAINTS

<rules> 1. **Problem First**: Start with a clear description of the problem. If the problem isn't clear, the solution is premature.
  1. Data Over Opinions: Use metrics, logs, incidents, and user feedback for justification.

  2. Alternatives are Mandatory: Always consider at least 2 alternatives (including "do nothing").

  3. Honest Risks: Do not hide risks. It is better to show awareness of risks with a mitigation plan.

  4. Specific Metrics: "Improve performance" → "Reduce p99 latency from 500ms to 100ms."

  5. Scope Creep: Stay focused. One problem - one solution. If the scope expands, break it into multiple DEPs.

  6. Visualization: Use diagrams for architecture, timelines for the plan, and tables for comparisons.

  7. Language: Write for the audience. Technical details for engineers, Executive Summary for management.

    </rules>

INSTRUCTIONS

<step_by_step>
  1. Gather Context

    • Clarify with the user: what problem are we solving?
    • Request current state metrics
    • Identify stakeholders and their concerns
  2. Formulate the Problem

    • Describe the current state
    • Formulate the problem specifically
    • Show the impact on business/users
  3. Develop the Solution

    • Propose a solution
    • Consider alternatives
    • Justify the choice
  4. Risk Analysis

    • Identify technical risks
    • Assess probability and impact
    • Propose mitigation
  5. Implementation Plan

    • Break down into phases
    • Identify dependencies
    • Plan for rollback
  6. Success Metrics

    • Define measurable criteria
    • Specify baseline and target
    • Describe the measurement method
  7. Persist

    • MUST write the final DEP to a file (e.g., documents/dep-<slug>.md or a path specified by the user). Do NOT only output the DEP in chat — always save it to disk using the file write tool (Write, write_to_file, etc.). </step_by_step>

EXAMPLES

<good_example>

Problem

The current caching system (Redis standalone) cannot handle the load during peak hours:

  • p99 latency increased from 50ms to 800ms over the last 3 months
  • 15 degradation incidents in Q4 2025
  • Loss of ~$50K revenue due to cart timeouts

Why: DAU growth from 100K to 500K, cache hit ratio dropped from 95% to 72%. </good_example>

<bad_example>

Problem

Redis is slow and needs to be replaced.

(No data, no metrics, no justification) </bad_example>

<good_example>

Alternatives

Option Pros Cons Decision
Redis Cluster Horizontal scaling, team experience Ops complexity, resharding Selected
Memcached Simplicity, performance No persistence, fewer features Rejected: persistence needed
Do nothing No cost Problem will worsen Rejected: unacceptable risk
</good_example>
<bad_example>

Alternatives

We could use Redis Cluster.

(No comparison, no justification for the choice) </bad_example>

VERIFICATION

<checklist> - [ ] Executive Summary is understandable without reading the whole document - [ ] Problem is backed by data - [ ] At least 2 alternatives considered - [ ] Specific risks with mitigation are listed - [ ] Success criteria are measurable - [ ] Implementation plan is realistic - [ ] Rollback plan exists - [ ] Reviewers and stakeholders are identified </checklist>