/** * SF-Context Command Template * * Template for viewing or switching working context. */ export const SF_CONTEXT_CONTENT = `# Working Context (SpecForge) Quickly view or switch the current working context. ## Arguments - \`$ARGUMENTS\` - Optional: Project or Specification ID to switch to ## Task ### 1. If No Arguments - Show Current Context **Logic:** \`\`\`typescript // Read project config const config = readFile('.specforge.json') const projectId = config.project.id const specificationId = config.activeSpecification?.id // Load details if (specificationId) { get_specification({ specificationId, include: ["status"] }) } \`\`\` **Output:** \`\`\` ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ WORKING CONTEXT ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Project: {project.name} Specification: {spec.title} Source: .specforge.json Progress: {done}/{total} ({pct}%) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ \`\`\` ### 2. If Arguments - Switch Context **Logic:** \`\`\`typescript // Try as specification first get_specification({ specificationId: $ARGUMENTS }) // Update .specforge.json activeSpecification // (or inform user to update manually) \`\`\` **Output:** \`\`\` ✓ Switched to: {name} Update .specforge.json activeSpecification.id to persist. \`\`\` ## Notes - No argument = show current context - With argument = switch context - Auto-detects if ID is project or specification `;