codebase-upgrade
Skill0 starsChanged 24 days agoMITView on GitHub
Inspect an existing web, Expo, React Native, native iOS, native Android, or Kotlin Multiplatform codebase, preserve strong patterns, identify high-confidence risks and upgrade opportunities, connect each recommendation to a working example and owning specialist skill, and ask the user which evidence-backed upgrade to pursue before changing architecture.
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- android-native-appSkill
- architecture-buildingSkill
- automated-product-engineerSkill
- claude-design-to-appSkill
- codebase-onboardingSkill
- code-reviewSkill
- design-polishSkill
- design-systemSkill
- expo-native-appSkill
- figma-to-app-featureSkill
- frontend-api-dbSkill
- ios-native-appSkill
- kotlin-multiplatform-appSkill
- manual-ui-qaSkill
- parallel-platform-developmentSkill
- pr-reviewSkill
- pr-workflowSkill
- responsive-designSkill
- security-reviewSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill when the user asks what should improve, whether the current setup is sound, how to modernize an existing application, or …
- Very specific: line 10
Use codebase-onboarding instead when first adopting the toolkit or when the repository needs a complete baseline, documentation …
- Distinctive: line 12
Read references/audit-and-upgrade-workflow.md for the inspection, recommendation, decision, implementation, and re-audit sequence.
- Very specific: line 16
Run pnpm dlx automated-product-engineer audit --json when the installed CLI is available.
- Distinctive: line 37
If the user already authorized a specific upgrade, proceed without asking again.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.
Files
Codebase Upgrade
Use this skill when the user asks what should improve, whether the current setup is sound, how to modernize an existing application, or which patterns from the reference system apply to their codebase.
Use codebase-onboarding instead when first adopting the toolkit or when the repository needs a complete baseline, documentation reconciliation, project-specific skill overlay, and multi-stage upgrade program. Return here for a focused domain review or one selected modernization slice.
Read references/audit-and-upgrade-workflow.md for the inspection, recommendation, decision, implementation, and re-audit sequence. Read references/pattern-atlas.md for the relevant product situation, target contract, proof, and owning skill. Use references/pattern-and-antipattern-catalog.md for the original cross-cutting principles and case-study evidence.
Start with local evidence
Run pnpm dlx automated-product-engineer audit --json when the installed CLI is available. Otherwise inspect the same evidence directly: repository instructions, package and runtime configuration, routes, state owners, client cache, services, repositories, schema and policies, auth/session clients, design-system layers, tests, CI, and native configuration.
The command is a static, read-only first pass. It does not execute application source. Validate every reported signal against its callers and tests before presenting it as a recommendation.
Build an upgrade brief
Separate findings into:
- preserve: a working pattern whose contract should remain intact;
- risk: a concrete, high-confidence failure or security path with observed evidence;
- opportunity: a useful improvement whose value depends on product priorities or usage;
- unknown: a material fact the code cannot answer.
For each proposed upgrade, name the user or operator pain, current evidence, owning boundary, target pattern, anti-pattern being removed, working reference, responsible skill, implementation size, risk, acceptance evidence, and rollback. Never turn directory names, file size, or dependency presence alone into a refactor mandate.
Before changing code, return a compact Current system feedback block with: strong behavior to preserve; exact observed friction or risk; material unknowns; selected atlas ID and authority boundary; and the first focused proof. If the user already authorized the outcome and no decision changes product behavior, data lifetime, authorization, compatibility, or recovery, continue after the feedback without asking again.
Ask for the decision that matters
After the inspection is complete, recommend no more than three ordered options. Ask the user which upgrade to pursue, or ask one focused product question when the answer changes authority, persistence, security, or migration behavior. Include a recommended option and explain the product effect. Do not ask the user for facts the repository already contains.
If the user already authorized a specific upgrade, proceed without asking again. If a critical credential or authorization risk is verified, say so directly and recommend addressing it first.
Route implementation to the owner
architecture-building: ownership, boundaries, extension seams, and reviewable decomposition.frontend-api-db: query cache, mutations, concurrency, idempotency, persistence, and Supabase.security-review: identity, authorization, secrets, RLS, cookies, and sensitive data.expo-native-app: lifecycle, deep links, permissions, offline work, builds, and updates.ios-native-app: SwiftUI or UIKit ownership, Swift concurrency, AuthenticationServices, Keychain, persistence, Apple capabilities, Xcode testing, signing, privacy, and distribution.android-native-app: Compose or Views ownership, ViewModel and Flow, coroutine scope, Credential Manager, Room/DataStore/WorkManager, Android capabilities, device testing, signing, and Play distribution.design-system: semantic tokens, governed components, variants, previews, and migration.responsive-designanddesign-polish: adaptive geometry and final interaction quality.manual-ui-qa,code-review, andpr-workflow: evidence, regression review, and delivery.
Implement one coherent vertical slice at a time. Preserve strong existing patterns, add focused failure coverage, run the relevant real-browser or native proof, then rerun the audit and record what changed, what remains, and the next trigger.
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
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.

