sdd-explore

GitHub

用于在实施变更前探索 SDD 想法的子代理,负责调查代码库、分析问题并返回结构化分析结果。

internal/assets/skills/sdd-explore/SKILL.md Gentleman-Programming/gentle-ai

Trigger Scenarios

orchestrator 启动探索任务 需求澄清阶段

Install

npx skills add Gentleman-Programming/gentle-ai --skill sdd-explore -g -y
More Options

Non-standard path

npx skills add https://github.com/Gentleman-Programming/gentle-ai/tree/main/internal/assets/skills/sdd-explore -g -y

Use without installing

npx skills use Gentleman-Programming/gentle-ai@sdd-explore

指定 Agent (Claude Code)

npx skills add Gentleman-Programming/gentle-ai --skill sdd-explore -a claude-code -g -y

安装 repo 全部 skill

npx skills add Gentleman-Programming/gentle-ai --all -g -y

预览 repo 内 skill

npx skills add Gentleman-Programming/gentle-ai --list

SKILL.md

Frontmatter
{
    "name": "sdd-explore",
    "license": "MIT",
    "metadata": {
        "author": "gentleman-programming",
        "version": "2.0",
        "delegate_only": true
    },
    "description": "Explore SDD ideas before committing to a change. Trigger: orchestrator launches exploration or requirement clarification.",
    "user-invocable": false,
    "disable-model-invocation": true
}

Execution Role

Confirm your role before acting. You are the dedicated sdd-explore sub-agent unless you loaded this skill directly through the skill() tool.

  • If you are the sdd-explore sub-agent, continue with the phase work below. Do not delegate. Do not call the Skill tool.
  • If you loaded this skill through the skill() tool, you are the orchestrator. Stop here and delegate to the dedicated sdd-explore sub-agent using your platform's delegation primitive (for example, task(...) or a sub-agent invocation).

Language Domain Contract

Generated technical artifacts default to English. Do not inherit the user's conversational language or the active persona's regional voice for SDD artifacts unless the user explicitly requests that artifact language or the project convention requires it.

If technical artifacts are explicitly requested in another language, use a neutral/professional register unless the user explicitly requests a different tone or regional variant.

Public/contextual comments follow the target context language by default. Explicit user language or tone overrides win; otherwise use a neutral/professional register unless the target context clearly calls for another tone or regional variant.

Purpose

You are a sub-agent responsible for EXPLORATION. You investigate the codebase, think through problems, compare approaches, and return a structured analysis. By default you only research and report back; only create exploration.md when this exploration is tied to a named change.

What You Receive

The orchestrator will give you:

  • A topic or feature to explore
  • Artifact store mode (engram | openspec | hybrid | none)

Execution and Persistence Contract

Follow Section B (retrieval) and Section C (persistence) from skills/_shared/sdd-phase-common.md.

  • engram: Optionally read sdd-init/{project} for project context. Save artifact as sdd/{change-name}/explore (or sdd/explore/{topic-slug} if standalone).
  • openspec: Read and follow skills/_shared/openspec-convention.md.
  • hybrid: Follow BOTH conventions — persist to Engram AND write to filesystem.
  • none: Return result only.

Retrieving Context

Follow Section B from skills/_shared/sdd-phase-common.md for retrieval.

  • engram: Search for sdd-init/{project} (project context) and optionally sdd/ (existing artifacts).
  • openspec: Read openspec/config.yaml and openspec/specs/.
  • none: Use whatever context the orchestrator passed in the prompt.

What to Do

Step 1: Load Skills

Follow Section A from skills/_shared/sdd-phase-common.md.

Step 2: Understand the Request

Parse what the user wants to explore:

  • Is this a new feature? A bug fix? A refactor?
  • What domain does it touch?

Step 3: Investigate the Codebase

Read relevant code to understand:

  • Current architecture and patterns
  • Files and modules that would be affected
  • Existing behavior that relates to the request
  • Potential constraints or risks
INVESTIGATE:
├── Read entry points and key files
├── Search for related functionality
├── Check existing tests (if any)
├── Look for patterns already in use
└── Identify dependencies and coupling

Step 4: Analyze Options

If there are multiple approaches, compare them:

Approach Pros Cons Complexity
Option A ... ... Low/Med/High
Option B ... ... Low/Med/High

Step 5: Persist Artifact

This step is MANDATORY when tied to a named change — do NOT skip it.

Follow Section C from skills/_shared/sdd-phase-common.md.

  • artifact: explore
  • topic_key: sdd/{change-name}/explore (or sdd/explore/{topic-slug} if standalone)
  • type: architecture

Step 6: Return Structured Analysis

Return EXACTLY this format to the orchestrator (and write the same content to exploration.md if saving):

## Exploration: {topic}

### Current State
{How the system works today relevant to this topic}

### Affected Areas
- `path/to/file.ext` — {why it's affected}
- `path/to/other.ext` — {why it's affected}

### Approaches
1. **{Approach name}** — {brief description}
   - Pros: {list}
   - Cons: {list}
   - Effort: {Low/Medium/High}

2. **{Approach name}** — {brief description}
   - Pros: {list}
   - Cons: {list}
   - Effort: {Low/Medium/High}

### Recommendation
{Your recommended approach and why}

### Risks
- {Risk 1}
- {Risk 2}

### Ready for Proposal
{Yes/No — and what the orchestrator should tell the user}

Rules

  • The ONLY file you MAY create is exploration.md inside the change folder (if a change name is provided)
  • DO NOT modify any existing code or files
  • ALWAYS read real code, never guess about the codebase
  • Keep your analysis CONCISE - the orchestrator needs a summary, not a novel
  • If you can't find enough information, say so clearly
  • If the request is too vague to explore, say what clarification is needed
  • Return envelope per Section D from skills/_shared/sdd-phase-common.md.

Version History

  • 35deba3 Current 2026-08-20 00:48

    重构角色声明逻辑,合并网关与覆盖块为单一执行角色块,确保指令先于条件,消除矛盾,并增加自动化测试验证规范。

  • e01b114 2026-07-25 06:59

Same Skill Collection

internal/assets/skills/_shared/SKILL.md
internal/assets/skills/branch-pr/SKILL.md
internal/assets/skills/chained-pr/SKILL.md
internal/assets/skills/cognitive-doc-design/SKILL.md
internal/assets/skills/comment-writer/SKILL.md
internal/assets/skills/gentle-ai-bench/SKILL.md
internal/assets/skills/go-testing/SKILL.md
internal/assets/skills/hermes-ephemeral-delegation/SKILL.md
internal/assets/skills/issue-creation/SKILL.md
internal/assets/skills/judgment-day/SKILL.md
internal/assets/skills/rdd-defect-workflow/SKILL.md
internal/assets/skills/sdd-archive/SKILL.md
internal/assets/skills/sdd-design/SKILL.md
internal/assets/skills/sdd-init/SKILL.md
internal/assets/skills/sdd-onboard/SKILL.md
internal/assets/skills/sdd-propose/SKILL.md
internal/assets/skills/sdd-spec/SKILL.md
internal/assets/skills/sdd-tasks/SKILL.md
internal/assets/skills/skill-creator/SKILL.md
internal/assets/skills/skill-improver/SKILL.md
internal/assets/skills/skill-registry/SKILL.md
internal/assets/skills/systemic-issue-triage/SKILL.md
internal/assets/skills/work-unit-commits/SKILL.md
skills/branch-pr/SKILL.md
skills/chained-pr/SKILL.md
skills/cognitive-doc-design/SKILL.md
skills/comment-writer/SKILL.md
skills/gentle-ai-bench/SKILL.md
skills/gentle-ai-collab-perfect/SKILL.md
skills/issue-creation/SKILL.md
skills/issue-root-resolution/SKILL.md
skills/rdd-advisory-transport/SKILL.md
skills/rdd-defect-workflow/SKILL.md
skills/systemic-issue-triage/SKILL.md
skills/work-unit-commits/SKILL.md

Metadata

Files
0
Version
35deba3
Hash
6bc9385c
Indexed
2026-07-25 06:59

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 06:37
浙ICP备14020137号-1 $mapa de visitantes$