/** * SF-Reset Command Template * * Template for resetting ticket statuses with dependency awareness. */ export const SF_RESET_CONTENT = `# Reset Ticket Statuses (SpecForge) Reset ticket statuses to ready state with dependency awareness. ## Arguments - \`$ARGUMENTS\` - Optional: Specification ID or ticket ID to reset ## Task ### 1. Get Reset Scope **MCP Calls:** \`\`\`typescript // Read project config const config = readFile('.specforge.json') const specificationId = $ARGUMENTS || config.activeSpecification?.id if ($ARGUMENTS?.match(/E\d+-T\d+/)) { // Single ticket reset get_ticket({ ticketId: $ARGUMENTS }) } else { // Full specification reset list_tickets({ specificationId }) } \`\`\` ### 2. Reset Tickets **MCP Calls:** \`\`\`typescript // Reset tickets via lifecycle operation reset_work_session({ specificationId, ticketId: $ARGUMENTS.match(/E\d+-T\d+/) ? $ARGUMENTS : undefined }) \`\`\` ### 3. Display Reset Results **Output:** \`\`\` ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ TICKET RESET COMPLETE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Scope: {scope} RESET SUMMARY ───────────────────────────────────────────────────────────────── Ready: {readyCount} tickets Blocked: {blockedCount} tickets Done: {doneCount} tickets (unchanged) RESET TICKETS ───────────────────────────────────────────────────────────────── E{n}-T{m} │ {oldStatus} → {newStatus} ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ \`\`\` ## Notes - Respects dependency constraints - Can reset single ticket or entire specification - Completed tickets remain unchanged by default `;