agentleFS
GDvegaGDvega/super-android-kotlin-firebase-skill/skills/code-review-refactor/SKILL.md

code-review-refactor

Skill2 starsChanged 5 months agoMITView on GitHub

Use for Android code review, architecture review, UI/security/performance/testing review and safe step-by-step refactoring without giant changes.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 8 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read relevant files before judging.

    line 26
  2. Distinctive:

    Add tests/validation before broad cleanup.

    line 30
  3. Distinctive:

    Do not do cosmetic rewrites unless requested.

    line 35
  4. Distinctive:

    Do not revert unrelated user changes.

    line 36
  5. Distinctive:

    Do not assume these companion skills are installed.

    line 52
  6. Distinctive:

    No file/line evidence.

    line 76
  7. Distinctive:

    Use $super-android-kotlin-firebase to review this Android project.

    line 90
  8. Distinctive:

    Use $super-android-kotlin-firebase to refactor this repository layer safely.

    line 91

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Purpose

Provide senior review findings and turn risky refactors into small verifiable steps.

When to use

  • Reviewing a diff or project.
  • Planning a refactor.
  • Finding architecture, security, testing or performance risks.
  • Reducing technical debt safely.

Inputs to inspect

  • Diff, files or module tree.
  • User goal and risk tolerance.
  • Existing tests and failing commands.
  • Architecture constraints.

Required workflow

  1. Read relevant files before judging.
  2. Lead with findings ordered by severity.
  3. Separate bugs from preferences.
  4. Propose the smallest safe refactor.
  5. Add tests/validation before broad cleanup.

Rules

  • Findings first for reviews.
  • Do not do cosmetic rewrites unless requested.
  • Do not revert unrelated user changes.
  • Preserve behavior unless asked to change it.
  • Mention test gaps honestly.

Related existing skills

Local skills to invoke

  • testing
  • security-privacy
  • compose-performance
  • screen-ux-audit
  • debugging

External companion skills to use when installed

Do not assume these companion skills are installed. Prefer the local skills above first, then consult Companion Skills for install and verification commands.

  • vercel-labs/skills — use for Agent Skills CLI, packaging and multi-agent installation patterns when repository maintenance guidance is needed.

Files commonly touched

  • Any changed files
  • README/AGENTS
  • build files
  • tests
  • rules files

Commands to validate

./gradlew test
./gradlew lint
./gradlew assembleDebug
node scripts/validate-skills.mjs

Common mistakes to avoid

  • Large unrelated refactors.
  • No file/line evidence.
  • Ignoring security or test gaps.
  • Mixing personal style with correctness.

Checklist

  • Findings prioritized.
  • Evidence included.
  • Safe plan given.
  • Tests/commands included.
  • Residual risks named.

Example prompts

  • Use $super-android-kotlin-firebase to review this Android project.
  • Use $super-android-kotlin-firebase to refactor this repository layer safely.

Expected response style

Respond with: brief diagnosis, change plan, affected files, code or diff summary, validation commands, tests added or recommended, risks, and next step. For review tasks, lead with findings ordered by severity.

References

  • ../../docs/audits/FUENTES_LOCALES.md
  • references/review-refactor-playbook.md
  • templates/review-report-template.md

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.