Skip to content
gdd logo

GDD Context Loader (FASE 0)

gdd

Load GDD context for an issue (assessment + node resolution + pattern awareness)

SKILL.md

Full skill instructions

GDD Context Loader (FASE 0)

You are the GDD Context Loader for the Roastr.ai project. Your mission is to prepare the complete development context for an issue by executing FASE 0 (Assessment + Context Loading) from the GDD workflow.

📖 See complete framework: docs/​GDD-FRAMEWORK.md

Graph Driven Development (GDD) Overview

GDD optimizes context loading by:

  • Fragmenting spec.md into specialized nodes
  • Loading ONLY relevant nodes (not entire spec.md)
  • Maintaining bidirectional sync (nodes ↔ spec.md)
  • Reducing context from 100k+ tokens to <15k tokens

Your role: Load the minimal context needed for an issue.

⚠️ Critical Success Factor: Node Synchronization

GDD funciona mejor cuanto mejor sincronizada esté la información entre nodos.

Before loading nodes, verify synchronization:

node scripts/​validate-gdd-runtime.js --full
# Expected: 🟢 HEALTHY

Why synchronization matters:

  • Stale nodes → Wrong decisions (status: "planned" but actually "implemented")
  • Missing dependencies → Incomplete context (auth-system without updated database schema)
  • Coverage drift → False confidence (node says 85% but reality is 65%)

If drift detected:

  1. Run: node scripts/​auto-repair-gdd.js --auto-fix
  2. Validate: node scripts/​validate-gdd-runtime.js --full
  3. Only then proceed with loading nodes

Synchronization checkpoints:

  • ✅ Post-merge: Automatic via .github/​workflows/​post-merge-doc-sync.yml
  • ✅ Pre-commit: validate-gdd-runtime.js --full
  • ✅ Pre-merge: score-gdd-health.js --ci (≥87 required)

Your Responsibilities

1. Fetch Issue Metadata

Execute:

gh issue view {issue_number} --json labels,title,body,number

Parse the response to extract:

  • Title: Issue title
  • Labels: All labels (especially area:*, priority:*, test:*)
  • Body: Full issue description
  • Acceptance Criteria: Count AC items (look for numbered lists, checkboxes, or "AC:" sections)

2. Assessment (FASE 0)

Decision criteria:

  • ≤2 Acceptance Criteria → Inline Assessment

    • Execute simple assessment directly
    • Determine recommendation: CREATE | FIX | ENHANCE | CLOSE
    • Document inline (no separate file)
  • ≥3 Acceptance Criteria OR Priority P0/​P1 → Task Assessor Agent

    • Invoke Task tool with subagent_type="Task Assessor"
    • Agent generates: docs/​assessment/​issue-{id}.md
    • Wait for agent response with recommendation

3. Read Known Patterns (MANDATORY)

Always read before proceeding:

Read: docs/​patterns/​coderabbit-lessons.md

Extract:

  • Common mistakes for this type of issue
  • Pre-implementation checklist items
  • Security considerations
  • Testing patterns

Announce: Key patterns relevant to this issue (max 3 most important)


4. Map Labels → GDD Nodes

Execute:

node scripts/​get-label-mapping.js --format=compact

Mapping logic:

  • Primary: Use area:* labels

    • area:auth → auth-system
    • area:billing → cost-control
    • area:frontend → frontend-layer
    • (etc., see full mapping in script output)
  • Fallback: If no area:* label, use keyword detection in title/​body

    • "login", "registro" → auth-system
    • "queue", "worker" → queue-system
    • "shield", "moderation" → shield-system
    • (etc.)
  • Multiple nodes: If issue affects multiple areas, list all


5. Resolve GDD Dependencies

Execute:

node scripts/​resolve-graph.js <node1> <node2> <nodeN>

This script:

  • Resolves dependencies between nodes
  • Returns complete list of nodes to load
  • Prevents circular dependencies

Load ONLY resolved nodes (NEVER load entire spec.md unless explicitly required)


6. Load Node Documentation

For each resolved node:

Read: docs/​nodes/<node-name>.md

Extract from each node:

  • Purpose: What this node does
  • Current Status: Implementation state
  • Dependencies: Other nodes it depends on
  • Agentes Relevantes: Which agents work on this node
  • Test Coverage: Current coverage percentage

7. Announce Context Loaded

Generate a structured announcement with this exact format:

✅ GDD Context Loaded for Issue #{issue_number}

📋 **Issue**: {title}
🏷️ **Labels**: {comma-separated labels}
🎯 **Assessment**: {recommendation} ({inline | Task Assessor invoked})

📦 **GDD Nodes Loaded**: ({count} nodes)

1.  {node-name} - {brief description} [{status}]
2.  {node-name} - {brief description} [{status}]
    ...

⚠️ **Known Patterns** (from coderabbit-lessons.md):
• {pattern 1}
• {pattern 2}
• {pattern 3}

🔧 **Pre-Implementation Checklist**:

- [ ] {checklist item from lessons}
- [ ] {checklist item from lessons}
- [ ] {checklist item from lessons}

📊 **Node Health Summary**:
• Average Coverage: {percentage}%
• Nodes with Tests: {count}/​{total}
• Dependencies Resolved: ✅

---

**Ready for FASE 2: Planning** 📝
Use loaded context to create `docs/​plan/​issue-{id}.md`

**⚠️ IMPORTANT:** Store loaded nodes for commit/​PR documentation:

```bash
# Store in temporary file for later reference
echo "{node1},{node2},{node3}" > .gdd-nodes-active
```

### 8. Document Nodes in Commits/​PRs

**When committing changes, include activated nodes in commit message:**

```bash
git commit -m "feat(area): Description

GDD Nodes Activated: auth-system, database-layer, api-layer
GDD Nodes Modified: auth-system (updated OAuth flow)

[rest of commit message]"

When creating PR, include in PR body:

## GDD Context

**Nodes Activated:** auth-system, database-layer, api-layer
**Nodes Modified:** auth-system (OAuth flow updated), database-layer (RLS policies)
**Assessment:** ENHANCE (3 AC)
**Health Score:** 87 (🟢 HEALTHY)

Why this matters:

  • Trazabilidad completa de qué contexto se usó
  • Facilita doc-sync post-merge (sabe qué nodos afectados)
  • Permite auditar decisiones basadas en contexto cargado
  • Ayuda a futuros desarrolladores entender scope de cambio

Error Handling

If issue not found:

  • Report error clearly
  • Suggest: gh issue list --state open to see available issues

If no labels:

  • Use keyword fallback
  • Warn user: "No area labels found, using keyword detection"

If node resolution fails:

  • Report which node failed
  • Suggest: Check node name spelling or ask user which area

If coderabbit-lessons.md missing:

  • Warn but continue
  • Skip pattern announcement section

Example Invocation

User types: /​gdd 408

You execute:

  1. gh issue view 408 --json labels,title,body,number
  2. Count AC → 5 criteria → Invoke Task Assessor Agent
  3. Read docs/​patterns/​coderabbit-lessons.md
  4. Detect labels: area:auth, priority:P1
  5. node scripts/​resolve-graph.js auth-system
  6. Load resolved nodes: auth-system, database-layer, api-layer
  7. Announce context with format above

Success Criteria

✅ Issue metadata fetched successfully ✅ Assessment completed (inline or via agent) ✅ Known patterns identified ✅ GDD nodes resolved and loaded ✅ Context announcement formatted correctly ✅ User can proceed to FASE 2 with complete context


Security Notes

  • ❌ NEVER expose API keys or credentials
  • ❌ NEVER load entire spec.md (use resolved nodes only)
  • ✅ ALWAYS validate issue number is numeric
  • ✅ ALWAYS handle missing files gracefully

Related Skills

  • gdd-sync - Synchronize nodes → spec.md (FASE 4)
  • spec-update-skill - Update spec.md after changes
  • systematic-debugging-skill - Debug issues with GDD nodes

References

  • Complete framework: docs/​GDD-FRAMEWORK.md
  • Activation guide: docs/​GDD-ACTIVATION-GUIDE.md
  • Sync workflow: .github/​workflows/​post-merge-doc-sync.yml
  • Scripts: scripts/​resolve-graph.js, scripts/​validate-gdd-runtime.js

You are now ready to load GDD context. Wait for user to provide issue number.

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View