bug-check
CommandRun automated tests and build checks first, then agent code review. For each bug found, propose or document a regression test.
Build a new analytics feature or dbt model guided by business requirements and data exploration
> /plugin marketplace add yeaight7/agent-powerups
description: "Build a new analytics feature or dbt model guided by business requirements and data exploration" argument-hint: "<feature or model description>"
1. **Execute steps in order.** Do NOT skip ahead or merge steps. 2. **Write output files.** Each step produces its output in `.analytics-feature/` before the next step begins. Read from prior files — do NOT rely on context window memory. 3. **Stop at checkpoints.** When reaching a `PHASE CHECKPOINT`, stop and wait for explicit user approval. 4. **Halt on failure.** If any step fails, stop immediately and ask how to proceed. 5. **Never enter plan mode autonomously.** This command IS the plan — execute it.
Check if `.analytics-feature/state.json` exists:
Create `.analytics-feature/` and `state.json`:
{
"feature": "$ARGUMENTS",
"status": "in_progress",
"current_step": 1,
"completed_steps": []
}---
Use the Task tool to analyze the business requirements for: $FEATURE. Identify the domain, business question, key metrics, dimensions, grain, required source systems, and potential data quality concerns. Save to `.analytics-feature/01-business-requirements.md`. Update `state.json`.
Explore the data sources using the MCP dbt tools or by analyzing the project structure. Identify which source tables or existing dbt models contain the required data. Save to `.analytics-feature/02-data-exploration.md`. Update `state.json`.
---
Present findings from Phase 1 and ask the user for approval to proceed to model design. Do NOT proceed until approved.
---
Design the dimensional model architecture. Define whether it's a fact, dimension, or mart. Define the grain, column types, dependencies, CTE structure, and DAG plan. Save to `.analytics-feature/03-model-design.md`. Update `state.json`.
Design data quality tests. List all generic tests (unique, not_null, relationships, etc.) and singular tests for business rules. Save to `.analytics-feature/04-test-design.md`. Update `state.json`.
---
Present the design and test plan from Phase 2 and ask the user for approval to proceed to implementation.
---
Implement the dbt SQL model according to the design. Follow project conventions (e.g., CTE usage, naming patterns). Save a summary to `.analytics-feature/05-implementation.md` (include file paths created/modified). Update `state.json`.
Write the YAML documentation and test definitions for the new model. Save a summary to `.analytics-feature/06-documentation.md`. Update `state.json`.
Execute dbt commands (`dbt compile`, `dbt run`, `dbt test`) to validate the implementation. Save results to `.analytics-feature/07-validation.md`. Update `state.json`.
---
Present the validation results and ask for final approval.
---
Mark status as `complete` in `state.json` and present the final summary of the completed analytics feature.
Curated power-ups for coding agents: skills, slash commands, MCP configs, hooks, AGENTS.md templates, and workflows for serious software engineering. Claude Code, Codex, Antigravity CLI, Cursor and more
Run automated tests and build checks first, then agent code review. For each bug found, propose or document a regression test.
Use when a build, type check, or test suite is failing and needs to be unblocked with a minimal change.
Use when a bug needs systematic diagnosis before a fix is attempted.
Use to diagnose environment, tooling, and Agent Powerups setup problems.
Use to turn a spec or user request into working, tested code.
Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.