Skip to content

My5t3r10us/cesizen / .agents/skills/apex

Systematic implementation using APEX methodology (Analyze-Plan-Execute-eXamine) with optional parallel subagents, self-validation, and adversarial review. Use when implementing features, fixing bugs, or making code changes that benefit from structured workflow.

steps/step-00b-interactive.md

View on GitHub
---
name: step-00b-interactive
description: Interactively configure APEX workflow flags
returns_to: step-00-init.md
---

# Step 0b: Interactive Configuration

## MANDATORY EXECUTION RULES (READ FIRST):

- πŸ›‘ NEVER skip the interactive menu
- πŸ›‘ NEVER assume user preferences
- βœ… ALWAYS use AskUserQuestion for flag selection
- βœ… ALWAYS update all flag variables before returning
- πŸ“‹ YOU ARE A CONFIGURATOR, not an implementer
- πŸ’¬ FOCUS on flag configuration only
- 🚫 FORBIDDEN to start any workflow steps

## CONTEXT BOUNDARIES:

- Variables available: All current flag values from step-00-init
- This sub-step updates: All flag variables based on user selection
- Return to step-00-init.md after completion

## YOUR TASK:

Present an interactive menu for the user to enable/disable workflow flags.

---

## EXECUTION SEQUENCE:

### 1. Display Current Configuration

Show current flag values:
```
**Current APEX Configuration:**

| Flag | Status | Description |
|------|--------|-------------|
| Auto (`-a`) | {auto_mode ? "βœ“ ON" : "βœ— OFF"} | Skip confirmations |
| Examine (`-x`) | {examine_mode ? "βœ“ ON" : "βœ— OFF"} | Adversarial review |
| Save (`-s`) | {save_mode ? "βœ“ ON" : "βœ— OFF"} | Save outputs to files |
| Test (`-t`) | {test_mode ? "βœ“ ON" : "βœ— OFF"} | Include test steps |
| Verify (`-v`) | {verify_mode ? "βœ“ ON" : "βœ— OFF"} | Launch & verify feature |
| Economy (`-e`) | {economy_mode ? "βœ“ ON" : "βœ— OFF"} | No subagents |
| Branch (`-b`) | {branch_mode ? "βœ“ ON" : "βœ— OFF"} | Verify/create branch |
| PR (`-pr`) | {pr_mode ? "βœ“ ON" : "βœ— OFF"} | Create pull request |
| Teams (`-m`) | {teams_mode ? "βœ“ ON" : "βœ— OFF"} | Parallel subagent execution |
```

### 2. Ask for Flag Changes

Use AskUserQuestion with multiSelect:
```yaml
questions:
  - header: "Configure"
    question: "Select flags to TOGGLE (currently shown flags will flip their state):"
    options:
      - label: "Auto mode"
        description: "{auto_mode ? 'Disable' : 'Enable'} - skip confirmations"
      - label: "Examine mode"
        description: "{examine_mode ? 'Disable' : 'Enable'} - adversarial review at end"
      - label: "Save mode"
        description: "{save_mode ? 'Disable' : 'Enable'} - save outputs to .claude/output/"
      - label: "Test mode"
        description: "{test_mode ? 'Disable' : 'Enable'} - include test creation/runner"
      - label: "Verify mode"
        description: "{verify_mode ? 'Disable' : 'Enable'} - launch app and verify feature works"
    multiSelect: true
```

### 3. Ask for Additional Flags

Use AskUserQuestion with multiSelect:
```yaml
questions:
  - header: "More"
    question: "Select additional flags to TOGGLE:"
    options:
      - label: "Economy mode"
        description: "{economy_mode ? 'Disable' : 'Enable'} - no subagents, save tokens"
      - label: "Branch mode"
        description: "{branch_mode ? 'Disable' : 'Enable'} - verify/create git branch"
      - label: "PR mode"
        description: "{pr_mode ? 'Disable' : 'Enable'} - create pull request at end"
      - label: "Teams mode"
        description: "{teams_mode ? 'Disable' : 'Enable'} - parallel subagent execution"
      - label: "Done - keep current"
        description: "No more changes, proceed with workflow"
    multiSelect: true
```

### 4. Apply Changes

For each selected flag, toggle its value:
```
IF "Auto mode" selected β†’ {auto_mode} = !{auto_mode}
IF "Examine mode" selected β†’ {examine_mode} = !{examine_mode}
IF "Save mode" selected β†’ {save_mode} = !{save_mode}
IF "Test mode" selected β†’ {test_mode} = !{test_mode}
IF "Verify mode" selected β†’ {verify_mode} = !{verify_mode}
IF "Economy mode" selected β†’ {economy_mode} = !{economy_mode}
IF "Branch mode" selected β†’ {branch_mode} = !{branch_mode}
IF "PR mode" selected β†’ {pr_mode} = !{pr_mode}
IF "Teams mode" selected β†’ {teams_mode} = !{teams_mode}
```

**Special rules:**

If Teams mode enabled, auto-enable tasks mode (teams requires task breakdown):
```
IF {teams_mode} = true β†’ {tasks_mode} = true
```

If PR mode enabled, auto-enable branch mode:
```
IF {pr_mode} = true β†’ {branch_mode} = true
```

### 5. Show Final Configuration

Display updated configuration:
```
**Updated APEX Configuration:**

| Flag | Status |
|------|--------|
| Auto | {auto_mode ? "βœ“ ON" : "βœ— OFF"} |
| Examine | {examine_mode ? "βœ“ ON" : "βœ— OFF"} |
| Save | {save_mode ? "βœ“ ON" : "βœ— OFF"} |
| Test | {test_mode ? "βœ“ ON" : "βœ— OFF"} |
| Verify | {verify_mode ? "βœ“ ON" : "βœ— OFF"} |
| Economy | {economy_mode ? "βœ“ ON" : "βœ— OFF"} |
| Branch | {branch_mode ? "βœ“ ON" : "βœ— OFF"} |
| PR | {pr_mode ? "βœ“ ON" : "βœ— OFF"} |
| Teams | {teams_mode ? "βœ“ ON" : "βœ— OFF"} |
```

### 6. Return

β†’ Return to step-00-init.md with all flags updated

---

## SUCCESS METRICS:

βœ… Current configuration displayed
βœ… User able to toggle any flag
βœ… All selected flags properly toggled
βœ… PR mode auto-enables branch mode
βœ… Final configuration shown

## FAILURE MODES:

❌ Not showing current flag states
❌ Forgetting to toggle selected flags
❌ Not enabling branch_mode when pr_mode selected
❌ Starting workflow instead of returning
❌ **CRITICAL**: Using plain text prompts instead of AskUserQuestion

---

## RETURN:

After configuration complete, return to `./step-00-init.md` to continue initialization.

<critical>
Remember: This sub-step ONLY handles flag configuration. Return immediately after updating flags.
</critical>
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why β€” repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" β€” or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself β€” your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall