dyad:lint
Lint
Run pre-commit checks including formatting, linting, and type-checking, and fix any errors.
Instructions
-
Run formatting check and fix:
npm run fmtThis will automatically fix any formatting issues.
-
Run linting with auto-fix:
npm run lint:fixThis will fix any auto-fixable lint errors.
-
Fix remaining lint errors manually:
If there are lint errors that could not be auto-fixed, read the affected files and fix the errors manually. Common issues include:
- Unused variables or imports (remove them)
- Missing return types (add them)
- Any other ESLint rule violations
-
Run type-checking:
npm run ts -
Fix any type errors:
If there are type errors, read the affected files and fix them. Common issues include:
- Type mismatches (correct the types)
- Missing type annotations (add them)
- Null/undefined handling issues (add appropriate checks)
-
Re-run all checks to verify:
After making manual fixes, re-run the checks to ensure everything passes:
npm run fmt && npm run lint && npm run ts -
Summarize the results:
- Report which checks passed
- List any fixes that were made manually
- If any errors could not be fixed, explain why and ask the user for guidance
- If all checks pass, confirm the code is ready to commit
More from dyad-sh/dyad
dyad:multi-pr-review
Multi-agent code review system that spawns three independent Claude sub-agents to review PR diffs. Each agent receives files in different randomized order to reduce ordering bias. One agent focuses specifically on code health and maintainability. Issues are validated using reasoned analysis rather than simple vote counting. Reports merge verdict (YES / NOT SURE / NO). Automatically deduplicates against existing PR comments. Always posts a summary (even if no new issues), with low priority issues in a collapsible section.
30remember-learnings
Review the current session for errors, issues, snags, and hard-won knowledge, then update the rules/ files (or AGENTS.md if no suitable rule file exists) with actionable learnings.
30dyad:plan-to-issue
Create a plan collaboratively with the user, then convert the approved plan into a GitHub issue.
26dyad:feedback-to-issues
Turn customer feedback (usually an email) into discrete GitHub issues. Checks for duplicates, proposes new issues for approval, creates them, and drafts a reply email.
25dyad:deflake-e2e-recent-commits
Automatically gather flaky E2E tests from recent CI runs on the main branch and from recent PRs by wwwillchen/keppo-bot/dyad-assistant, then deflake them.
25dyad:pr-push
Commit any uncommitted changes, run lint checks, fix any issues, and push the current branch.
25