スキル一覧に戻る
ffMathy

boy-scout-rule

by ffMathy

My digital assistant that runs the house.

2🍴 0📅 2026年1月24日
GitHubで見るManusで実行

SKILL.md


name: boy-scout-rule description: Always leave code better than you found it. Use this when encountering any code quality issues, even if unrelated to your current task.

Boy Scout Rule

CRITICAL: Always fix issues you encounter, even if unrelated to your current task.

The Rule

Leave the codebase cleaner than you found it.

What to Fix

Always fix:

  • ALL lint errors in any file you encounter
  • ALL failing tests you discover
  • Formatting issues in files you touch
  • Dead code and unused imports
  • Code quality issues you notice

Examples

While working on feature A, you notice:

  • File B has lint errors → Fix them
  • Test C is failing → Fix it
  • File D has unused imports → Remove them
  • Function E has poor naming → Improve it

Process

  1. Encounter issue during your work
  2. Fix it immediately as part of your current changes
  3. Include in your commit with a note
  4. Test that fix doesn't break anything

Commit Message Format

When fixing unrelated issues:

feat(feature-a): add new capability

Also fixes:
- Lint errors in file-b.ts
- Failing test in file-c.spec.ts
- Removes unused imports from file-d.ts

Benefits

  • Continuous improvement: Code quality increases over time
  • Prevents technical debt: Small fixes prevent larger problems
  • Team responsibility: Everyone contributes to code quality
  • Safer refactoring: Clean code is easier to change

What NOT to Do

❌ Don't create separate "cleanup" PRs unless the changes are substantial ❌ Don't skip fixing issues because "it's not my code" ❌ Don't leave broken tests or lint errors

The best time to fix a small issue is when you first see it.

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です