lint-build-loop
Lint + Build Loop
Goal
Repeatedly run npm run lint && npm run build, fix any errors that appear, and rerun until both commands succeed.
Workflow
-
Confirm working directory
- Run in the project root that contains the
package.jsonthe user intends. - If multiple roots exist, ask the user to choose.
- Run in the project root that contains the
-
Run the loop
- Execute
npm run lint && npm run build. - Run this as a single sequential shell command joined with
&&. - Do not split these steps across subagents or run them in parallel.
- If it fails, read the error output, fix the underlying issues, and rerun the same command.
- Continue until the command exits successfully.
- Execute
-
Failure handling
- If the same error repeats after fixes, pause and ask the user for guidance.
- If a fix is ambiguous or risky, explain the tradeoff and ask before proceeding.
-
Reporting
- Summarize the fixes made and confirm the final successful run.
- Provide the exact command used and the directory it was run in.
Notes
- Subagents are appropriate only for independent analysis/fix work, not for executing this ordered command chain.
More from dolesshq/self-obsolescence
review-plan-implementation
Review an implemented .plan.md by executing the instructions in its ## Reviewer Handoff section.
14execute-plan
Execute an existing plan file. Use when a user asks to carry out a .plan.md task list.
13supabase-reset-test-gen-loop
Iteratively run a local Supabase reset, database tests, and type generation until they succeed, fixing issues between runs. Use when asked to reset the local Supabase DB, run `supabase test db`, and regenerate types (`npm run gen-types`) in a loop.
13fetch-rules
Fetch and apply Cursor-style workspace rules supporting all rule formats (.cursor/rules/*.md, *.mdc, AGENTS.md, and legacy .cursorrules).
12create-plan
Create a concise plan. Use when a user explicitly asks for a plan related to a coding task.
12summarize-changes
Summarize code changes by author type and scope. Inputs are author and scope with product plus PR as defaults.
12