Skip to main content

verify-work

Validate built features through conversational testing with persistent state. Creates UAT.md that tracks test progress and feeds gaps into plan-phase.

معلومات المصدر

المستودع
ModelioOpenSource/Modelio
آخر نشاط في المصدر
٧ أغسطس ٢٠٢٦ في ١٣:٤٩
لغة SKILL.md المكتشفة
الإنجليزية
النجوم
١٬٠٦١
التفرعات
١٧١

خيارات التثبيت

يُحدَّد Prompt الذي يراجع المصدر أولًا بشكل افتراضي. يمكنك التبديل إلى أمر مباشر أو تنزيل نسخة محلية.

مراجعة ملفات المصدر

اقرأ SKILL.md وأي ملفات مرافقة يعرضها SkillsMP قبل أن تقرر التثبيت.

عرض SKILL.md

SKILL.md
تعليمات المصدر · معاينة للقراءة فقط
name
verify-work
description
Validate built features through conversational testing with persistent state. Creates UAT.md that tracks test progress and feeds gaps into plan-phase.
<purpose> Validate built features through conversational testing with persistent state. Creates UAT.md that tracks test progress, survives /clear, and feeds gaps into /gsd-plan-phase --gaps. User tests, Copilot records. One test at a time. Plain text responses. </purpose> <philosophy> **Show expected, ask if reality matches.** Copilot presents what SHOULD happen. User confirms or describes what's different. - "yes" / "y" / "next" / empty → pass - Anything else → logged as issue, severity inferred No Pass/Fail buttons. No severity questions. Just: "Here's what should happen. Does it?" </philosophy> <template> @~/.gsd/templates/UAT.md </template> <process> <step name="resolve_model_profile" priority="first"> Read model profile for agent spawning: ```bash MODEL_PROFILE=$(cat .gsd/config.json 2>/dev/null | grep -o '"model_profile"[[:space:]]*:[[:space:]]*"[^"]*"' | grep -o '"[^"]*"$' | tr -d '"' || echo "balanced") ``` Default to "balanced" if not set. **Model lookup table:** | Agent | quality | balanced | budget | | ---------------- | ------- | -------- | ------ | | gsd-planner | opus | opus | sonnet | | gsd-plan-checker | sonnet | sonnet | haiku | Store resolved models for use in agent spawning below. </step> <step name="check_active_session"> **First: Check for active UAT sessions** ```bash find .gsd/phases -name "*-UAT.md" -type f 2>/dev/null | head -5 ``` **If active sessions exist AND no $ARGUMENTS provided:** Read each file's frontmatter (status, phase) and Current Test section. Display inline: ``` ## Active UAT Sessions | # | Phase | Status | Current Test | Progress | |---|-------|--------|--------------|----------| | 1 | 04-comments | testing | 3. Reply to Comment | 2/6 | | 2 | 05-auth | testing | 1. Login Form | 0/4 | Reply with a number to resume, or provide a phase number to start new. ``` Wait for user response. - If user replies with number (1, 2) → Load that file, go to `resume_from_file` - If user replies with phase number → Treat as new session, go to `create_uat_file` **If active sessions exist AND $ARGUMENTS provided:** Check if session exists for that phase. If yes, offer to resume or restart. If no, continue to `create_uat_file`. **If no active sessions AND no $ARGUMENTS:** ``` No active UAT sessions. Provide a phase number to start testing (e.g., /verify-work.md 4) ``` **If no active sessions AND $ARGUMENTS provided:** Continue to `create_uat_file`. </step> <step name="find_summaries"> **Find what to test:** Parse $ARGUMENTS as phase number (e.g., "4") or plan number (e.g., "04-02"). ```bash # Find phase directory (match both zero-padded and unpadded) PADDED_PHASE=$(printf "%02d" ${PHASE_ARG} 2>/dev/null || echo "${PHASE_ARG}") PHASE_DIR=$(ls -d .gsd/phases/${PADDED_PHASE}-* .gsd/phases/${PHASE_ARG}-* 2>/dev/null | head -1) # Find SUMMARY files ls "$PHASE_DIR"/*-SUMMARY.md 2>/dev/null ``` Read each SUMMARY.md to extract testable deliverables. </step> <step name="extract_tests"> **Extract testable deliverables from SUMMARY.md:** Parse for: 1. **Accomplishments** - Features/functionality added 2. **User-facing changes** - UI, workflows, interactions Focus on USER-OBSERVABLE outcomes, not implementation details. For each deliverable, create a test: - name: Brief test name - expected: What the user should see/experience (specific, observable) Examples: - Accomplishment: "Added comment threading with infinite nesting" → Test: "Reply to a Comment" → Expected: "Clicking Reply opens inline composer below comment. Submitting shows reply nested under parent with visual indentation." Skip internal/non-observable items (refactors, type changes, etc.). </step> <step name="create_uat_file"> **Create UAT file with all tests:** ```bash mkdir -p "$PHASE_DIR" ``` Build test list from extracted deliverables. Create file: ```markdown --- status: testing phase: XX-name source: [list of SUMMARY.md files] started: [ISO timestamp] updated: [ISO timestamp] --- ## Current Test <!-- OVERWRITE each test - shows where we are --> number: 1 name: [first test name] expected: | [what user should observe] awaiting: user response ## Tests ### 1. [Test Name] expected: [observable behavior] result: [pending] ### 2. [Test Name] expected: [observable behavior] result: [pending] ... ## Summary total: [N] passed: 0 issues: 0 pending: [N] skipped: 0 ## Gaps [none yet] ``` Write to `.gsd/phases/XX-name/{phase}-UAT.md` Proceed to `present_test`. </step> <step name="present_test"> **Present current test to user:** Read Current Test section from UAT file. Display using checkpoint box format: ``` ╔══════════════════════════════════════════════════════════════╗ ║ CHECKPOINT: Verification Required ║ ╚══════════════════════════════════════════════════════════════╝ **Test {number}: {name}** {expected} ────────────────────────────────────────────────────────────── → Type "pass" or describe what's wrong ────────────────────────────────────────────────────────────── ``` Wait for user response (plain text; do not invoke the `ask_questions` tool. </step> <step name="process_response"> **Process user response and update file:** **If response indicates pass:** - Empty response, "yes", "y", "ok", "pass", "next", "approved", "✓" Update Tests section: ``` ### {N}. {name} expected: {expected} result: pass ``` **If response indicates skip:** - "skip", "can't test", "n/a" Update Tests section: ``` ### {N}. {name} expected: {expected} result: skipped reason: [user's reason if provided] ``` **If response is anything else:** - Treat as issue description Infer severity from description: - Contains: crash, error, exception, fails, broken, unusable → blocker - Contains: doesn't work, wrong, missing, can't → major - Contains: slow, weird, off, minor, small → minor - Contains: color, font, spacing, alignment, visual → cosmetic - Default if unclear: major Update Tests section: ``` ### {N}. {name} expected: {expected} result: issue reported: "{verbatim user response}" severity: {inferred} ``` Append to Gaps section (structured YAML for plan-phase --gaps): ```yaml - truth: "{expected behavior from test}" status: failed reason: "User reported: {verbatim user response}" severity: { inferred } test: { N } artifacts: [] # Filled by diagnosis missing: [] # Filled by diagnosis ``` **After any response:** Update Summary counts. Update frontmatter.updated timestamp. If more tests remain → Update Current Test, go to `present_test` If no more tests → Go to `complete_session` </step> <step name="resume_from_file"> **Resume testing from UAT file:** Read the full UAT file. Find first test with `result: [pending]`. Announce: ``` Resuming: Phase {phase} UAT Progress: {passed + issues + skipped}/{total} Issues found so far: {issues count} Continuing from Test {N}... ``` Update Current Test section with the pending test. Proceed to `present_test`. </step> <step name="complete_session"> **Complete testing and commit:** Update frontmatter: - status: complete - updated: [now] Clear Current Test section: ``` ## Current Test [testing complete] ``` **Check planning config:** ```bash COMMIT_PLANNING_DOCS=$(cat .gsd/config.json 2>/dev/null | grep -o '"commit_docs"[[:space:]]*:[[:space:]]*[^,}]*' | grep -o 'true\|false' || echo "true") git check-ignore -q .gsd 2>/dev/null && COMMIT_PLANNING_DOCS=false ``` **If `COMMIT_PLANNING_DOCS=false`:** Skip git operations **If `COMMIT_PLANNING_DOCS=true` (default):** Commit the UAT file: ```bash git add ".gsd/phases/XX-name/{phase}-UAT.md" git commit -m "test({phase}): complete UAT - {passed} passed, {issues} issues" ``` Present summary: ``` ## UAT Complete: Phase {phase} | Result | Count | |--------|-------| | Passed | {N} | | Issues | {N} | | Skipped| {N} | [If issues > 0:] ### Issues Found [List from Issues section] ``` **If issues > 0:** Proceed to `diagnose_issues` **If issues == 0:** ``` All tests passed. Ready to continue. - `/gsd-plan-phase {next}` — Plan next phase - `/gsd-execute-phase {next}` — Execute next phase ``` </step> <step name="diagnose_issues"> **Diagnose root causes before planning fixes:** ``` --- {N} issues found. Diagnosing root causes... Spawning parallel debug agents to investigate each issue. ``` - Load diagnose-issues workflow - Follow ../diagnose-issues/SKILL.md - Spawn parallel debug agents for each issue via runSubagent() - Collect root causes - Update UAT.md with root causes - Proceed to `plan_gap_closure` Diagnosis runs automatically - no user prompt. Parallel agents investigate simultaneously, so overhead is minimal and fixes are more accurate. </step> <step name="plan_gap_closure"> **Auto-plan fixes from diagnosed gaps:** Display: ``` ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ GSD ► PLANNING FIXES ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◆ Spawning planner for gap closure... ``` Spawn gsd-planner in --gaps mode: ``` runSubagent( agentName: "📋 GSD Planner", description: "Plan gap fixes for Phase {phase}", model: "{planner_model}", prompt: """ <planning_context> **Phase:** {phase_number} **Mode:** gap_closure **UAT with diagnoses:** @.gsd/phases/{phase_dir}/{phase}-UAT.md **Project State:** @.gsd/STATE.md **Roadmap:** @.gsd/ROADMAP.md </planning_context> <downstream_consumer> Output consumed by /gsd-execute-phase Plans must be executable prompts. </downstream_consumer> """ ) ``` On return: - **PLANNING COMPLETE:** Proceed to `verify_gap_plans` - **PLANNING INCONCLUSIVE:** Report and offer manual intervention </step> <step name="verify_gap_plans"> **Verify fix plans with checker:** Display: ``` ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ GSD ► VERIFYING FIX PLANS ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ◆ Spawning plan checker... ``` Initialize: `iteration_count = 1` Spawn gsd-plan-checker: ``` runSubagent( agentName: "✅ GSD Plan Checker", description: "Verify Phase {phase} fix plans", model: "{checker_model}",
عرض على GitHub
ملف SKILL.md هذا كبير جدا، لذلك يعرض SkillsMP القسم الاول فقط هنا. عرض على GitHub