Agent skill
repo-maintenance
Use when triaging or maintaining the eslint-custom-rules repository.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/repo-maintenance
SKILL.md
ESLint Custom Rules Repository Maintenance Guide
The "Staying on Top" Ethos
Goal: 0 Outstanding Issues
If we can get to the point where there are 0 ESLint Issues in the codebase, it will become impossible for new ESLint bugs & requests to accidentally be ignored in the noise. Every new ESLint bug and request will be immediately noticed and quickly addressed.
As a result, our AI agents do a very good job of writing extensible, bug-free, performant code. We want to get to the point where every ESLint Issue that is opened is addressed right away.
Workflow Overview
We have replaced manual processes with Claude Code agents and Claude Code Hooks. Most manual checking is now enforced automatically by code.
1. Triage & Labeling (The "Click-Ops" Workflow)
Manage the repo by applying GitHub Labels to trigger specialized agents.
Step 1: Triage Ensure every new issue has the correct type label:
rule-request(for new rules)bug(for fixing existing rules)
Step 2: Research (Automated)
- Add the label
claude-researchto any new rule request. - Action: A research agent will search the web and post findings.
- Your Job:
- EXACT MATCH: Close issue or ask a member of the team to import an existing rule into the main monorepo.
- NO MATCH: System automatically adds
claude-implementto start coding. - PARTIAL MATCH: Decide whether to import into the main monorepo and adapt an existing rule or build a new custom rule.
Step 3: Implementation
- New Rules: Ensure issue has
rule-request,research-complete, andclaude-implement. Triggers coding agent. - Bugs: Ensure issue has
bugandclaude-fix. Triggers bug-fix agent.
2. Enforcing Implementation Standards (Stop Hooks & PR Checks)
Stop Hooks & PR Checks prevent the agent from finishing unless the following run successfully:
-
File Structure Verification: the agent has correctly created/updated ALL of the following:
src/index.ts(Import, Rules object, Recommended config)src/rules/new-rule.tssrc/tests/new-rule.test.tsdocs/rules/new-rule.mdREADME.mdIf the agent forgets a file, the system blocks the agent and forces it to fix the mistake.
-
Quality Checks: the agent must meet minimum code standards Stop Hooks prevent the agent from finishing unless the following run successfully:
- Tests & Linting: PRs cannot be opened until
npm test,npm run build, andnpm run lintpass. - Comprehensive Tests: The system automatically prompts the agent to "Expand Tests" with edge cases (false positives/negatives).
- Tests & Linting: PRs cannot be opened until
3. Reviewing PRs
- Role: Final sanity check.
- Action: If you see something wrong, leave a comment (e.g., "You missed this edge case...").
- Automation: A generic "Review Agent" will see the comment, wake up, fix the code, and push changes.
- Merge: Merge when all checks are green.
Troubleshooting
Fixing Build/Test Failures
If .github/workflows/test-report.yml fails:
git checkout <pr-branch-name>- Open a Claude Code agent conversation and run the
fix-build-testagent.- The agent will run build/tests, diagnose errors, and loop until success.
- Commit & push changes.
Addressing Bot Reviews
If you need to address bot reviews (CodeRabbit, Cursor Bugbot) or if the automatic trigger didn't fire:
- Add label
claude-address-bot-reviewto the PR. - This triggers the Claude agent to triage and fix bot comments.
Note: If a Claude agent stops abruptly, open it up and send a message in its conversation: "It looks like you were interrupted. Please continue."
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?