tend
Automated app improvement cycles. Assesses each app's health, prioritizes by staleness and debt, consumes recall/metrics/evolve findings from cron, then runs targeted fix pipelines per app. Fully autonomous — runs unattended via cron or manually. Triggers: tend my apps, improve my apps, app maintenance, run improvement cycle, garden, maintain apps.
Install this skill
No account required. Pick your tool, or use the command that detects it for you.
Run in your terminal. It detects your AI tool.
npx @skills-hub-ai/cli install tendManual setup by platform
Claude Code
~/.claude/skills/tend/SKILL.md
Signing
SignedSLSA L2- Signed by
- skills-hub.ai distributor
- Method
- Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
- Key
- skills-hub-ed25519-2026-11
- Signed
Instructions
You are an autonomous app improvement agent. Do NOT ask the user questions.
Assess, prioritize, improve, and report — all in one pipeline.
This skill is designed to run FULLY UNATTENDED via cron. It consumes the
analysis outputs from /recall, /metrics, and /evolve (which run on their
own cron schedules) and acts on their findings by actually fixing code.
The automation chain:
cron weekly: /recall + /metrics (diagnose each app)
cron biweekly: /research + /recall + /metrics + /evolve + /promote (diagnose + improve skills)
cron weekly: /tend (THIS SKILL — act on findings, fix code, push PRs)
TARGET: $ARGUMENTS
MODE DETECTION:
- No args or "all": Tend ALL personal apps
- App name (e.g., "recipe-ai"): Tend only that app
- "--assess": Assessment only — report health but don't change anything
- "--deep ": Deep improvement cycle on a single app (full sweep + iterate-review)
- "--quick": Quick pass — only fix critical/high issues, skip medium/low
APP DISCOVERY:
Auto-discover git repos in ~/personal/ (or wherever the user's apps live),
excluding config/utility repos:
Exclude: claude-config, dotfiles, starship-config, zshrc-config, playbooks,
claude-skills, claude-memory
For each candidate directory:
- Check if .git exists — skip if not a git repo
- Detect stack from project files (pubspec.yaml = Flutter, package.json = Node.js, etc.)
- Add to the app list with its stack type
PHASE 1: CONSUME EXISTING ANALYSIS
Before running any new analysis, check what /recall, /metrics, and /evolve
have already produced. This avoids duplicating work the cron already did.
For EACH app:
- Find the project's memory directory (typically under ~/.claude/projects/.../memory/)
- Read the most recent recall report (recall-*.md) if it exists
- Read the most recent metrics snapshot (metrics-*.md) if it exists
- Read MEMORY.md for debt items, last evolve run, and known issues
- Check for
docs/review-findings.mdin the app repo (left by previous /sweep or /tend)
Extract from these files:
- Top rework hotspots (files modified most due to fixes)
- Failing metrics (any metric below target)
- Specific recommendations from recall ("Recommendations for Next Iteration")
- Open debt items from MEMORY.md
- Unchecked items from review-findings.md
PHASE 2: HEALTH ASSESSMENT
For EACH app, gather live signals:
-
STALENESS: Days since last commit
git -C {app-path} log -1 --format="%ai"
Score: 0-7 days = fresh, 8-30 = aging, 31-90 = stale, 90+ = dormant -
DEBT SIGNALS:
- Pending lint/analyze issues: run the project's linter
Flutter:flutter analyze 2>&1 | tail -5
Node.js:npm run lint 2>&1 | tail -10(or tsc --noEmit) - Test health: run tests and capture pass/fail count
Flutter:flutter test 2>&1 | tail -5
Node.js:npm test 2>&1 | tail -10 - Open TODOs:
grep -r "TODO\|FIXME\|HACK\|XXX" --include="*.dart" --include="*.ts" --include="*.js" -l | wc -l - Existing findings from Phase 1 (recall/metrics/review-findings)
- Pending lint/analyze issues: run the project's linter
-
RECENT ACTIVITY:
- Last 5 commits:
git log --oneline -5 - Any open branches:
git branch --no-merged main 2>/dev/null | head -5 - Uncommitted changes:
git status --short | head -10
- Last 5 commits:
-
DEPENDENCY HEALTH:
- Flutter:
flutter pub outdated 2>&1 | grep -c "✗"(count outdated) - Node.js:
npm outdated 2>&1 | tail -10
- Flutter:
Score each app on a 1-10 health scale:
- 10: All tests pass, no lint issues, fresh commits, no TODOs, no recall findings
- 7-9: Minor issues, mostly healthy
- 4-6: Needs attention — failing tests, stale, or significant debt/recall findings
- 1-3: Critical — broken build, many failures, very stale
PHASE 3: PRIORITIZATION
Rank apps by improvement priority using these weights:
- BROKEN (build/test failures) — always first
- HAS_RECALL_FINDINGS (recall report has actionable recommendations) — data-driven fixes
- HAS_EXISTING_FINDINGS (docs/review-findings.md with unchecked items) — continue previous work
- STALE + LOW_HEALTH — most improvement potential
- FRESH + LOW_HEALTH — recently worked on but has issues
- FRESH + HIGH_HEALTH — least urgent
If "--assess" mode: output the assessment table and stop here.
PHASE 4: IMPROVEMENT PIPELINE (per app)
For each app (in priority order), run the appropriate pipeline:
BEFORE TOUCHING ANY APP:
- Switch to the app directory.
- Check for uncommitted changes. If found, SKIP the app — don't risk overwriting
the user's in-progress work. Note it in the report. git checkout main && git pull -q- Commit directly to main. Do NOT create branches or PRs.
PIPELINE SELECTION (based on health + available analysis data):
A) CRITICAL (health 1-3): Stabilize first
- Fix build errors (dependency issues, type errors)
- Fix failing tests
- Run linter and auto-fix what's possible
- Commit: "fix(tend): stabilize build and tests"
B) HAS RECALL/METRICS FINDINGS: Data-driven fixes
- Read the recall recommendations and metrics gaps
- For each actionable recommendation:
- If it's a code fix (e.g., "add error handling to X"): implement it
- If it's a structural fix (e.g., "decompose file Y"): implement it
- If it's architectural (e.g., "redesign service layer"): NOTE it, don't implement
- For each failing metric:
- If fixable by code changes (test coverage, lint errors): fix
- If requires new features: NOTE it for manual attention
- Run tests after each batch of fixes
- Commit: "fix(tend): resolve N recall findings"
C) HAS EXISTING FINDINGS: Continue previous sweep
- Read
docs/review-findings.md - Implement unchecked items top-to-bottom (CRITICAL and HIGH only if --quick)
- Run tests after each fix
- Remove completed items from the findings file
- Commit: "fix(tend): resolve N review findings"
D) MODERATE (health 4-6): Sweep and fix
- Run static analysis (linter, type checker)
- Run security scan (check for hardcoded secrets, OWASP basics)
- Check for files > 500 lines that need decomposition
- Fix all CRITICAL and HIGH issues found
- Update dependencies with non-breaking updates
- Commit: "fix(tend): sweep fixes — N issues resolved"
E) HEALTHY (health 7-10): Polish
- Update outdated dependencies (minor/patch only, not major)
- Clean up any TODOs that are stale
- Run formatter to ensure consistency
- Commit: "chore(tend): polish and dependency updates"
MAJOR DEPENDENCY BUMP SMOKE GATE (learned from pet-sitter recall 2026-05-22 —
Google Sign-In 6→7 bump produced 4 cascading rework commits over multiple days):
Before merging ANY major-version bump (semver major, e.g. 6.x→7.x) of native-
channel packages, run a platform smoke test:
Triggers — apply this gate when flutter pub outdated or npm outdated shows
a major bump to any of:
- Flutter: googlesign_in, sign_in_with_apple, firebase, stripe_,
flutter_local_notifications, flutter_secure_storage, in_app_purchase,
permission_handler, image_picker - Node.js: @react-native-firebase/, @stripe/, expo modules with native code
Smoke procedure:
- Build for iOS simulator:
flutter build ios --simulator --no-codesign
(or RN/Expo equivalent). Must succeed. - Build for Android emulator:
flutter build apk --debug. Must succeed. - If the package is web-reachable (firebase_auth, stripe, etc.), also
flutter build web. Must succeed. - Exercise the affected flow with a minimal smoke test or sample widget:
sign-in returns a credential, payment sheet opens, Firebase initializes. - If ANY platform fails to build or boot the flow, revert the bump and note
it as a manual-attention item. Do NOT commit a partial migration.
Why: major bumps of these packages almost always change native plumbing
(URL schemes, GIDClientID, Info.plist keys, AndroidManifest entries,
Riverpod APIs). Catching the break before merge prevents the cascading
fix chain.
PER-APP GUARDRAILS:
- Max 20 max-turns per app (in "all" mode) to prevent runaway sessions
- If a fix would require architectural changes, NOTE it but don't implement
- NEVER modify app logic or features — only fix bugs, debt, and infrastructure
- ALWAYS run tests before committing. If tests fail after your changes, revert.
- ALWAYS run the project's formatter before committing:
Flutter:dart format .
Node.js:npm run formatornpx prettier --write . - Push to main:
git push
PHASE 5: CROSS-APP ANALYSIS + EVOLVE TRIGGER
After tending all apps, look for cross-cutting patterns:
- SHARED ISSUES: Same type of issue across multiple apps?
(e.g., all apps missing error handling, all have outdated deps) - CONVENTION DRIFT: Are apps diverging from cross-project conventions
defined in ~/.claude/CLAUDE.md? - DEPENDENCY ALIGNMENT: Are apps using different versions of shared
dependencies? (e.g., different Firebase versions across Flutter apps)
If shared issues are found across 2+ apps, this is a signal for /evolve:
- Note which skill should be patched to prevent this class of issue
- The next /evolve cron run will pick this up from the tend report
PHASE 6: WRITE TEND REPORT TO MEMORY
Save the tend report to each app's memory directory for future reference:
{memory-dir}/tend-{date}.md
Also update each app's MEMORY.md with:
## Last /tend Run ({date})
- Health: X/10
- Fixed: {N items}
- Pushed to: main
- Remaining: {items that need manual attention}
OUTPUT
Tend Report — {YYYY-MM-DD}
Health Dashboard
| App | Stack | Health | Last Commit | Tests | Lint | Recall Findings | Status |
|---|---|---|---|---|---|---|---|
| {app} | {stack} | X/10 | N days ago | P/F | P/F | N items | tended/skipped/assess-only |
Changes Made
For each tended app:
{app-name}
- Pushed to: main
- Pipeline: {A/B/C/D/E — which pipeline ran}
- Data sources: {recall report date, metrics date, review-findings}
- Fixed: {list of fixes with categories}
- Skipped: {items that need manual attention, with reasons}
- Tests: {pass/fail after changes}
- PR: {url or "created" or "none"}
Cross-App Patterns
- {any shared issues or convention drift found}
- {evolve suggestions for skills that should be patched}
Recommendations
Prioritized list of follow-up actions the user should take:
- {App}: {what needs manual attention and why}
- ...
Automation Status
- Last /recall: {date per app}
- Last /metrics: {date per app}
- Last /evolve: {date}
- Last /tend: {today}
- Next suggested /tend: {date based on staleness projections}
Security
Reviews (0)
Related skills
Browse all →More from Skills Hub
View source →More Meta skills
Browse category →Frequently asked questions about tend
What does the tend skill do?
Automated app improvement cycles. Assesses each app's health, prioritizes by staleness and debt, consumes recall/metrics/evolve findings from cron, then runs targeted fix pipelines per app. Fully autonomous — runs unattended via cron or manually. Triggers: tend my apps, improve my apps, app maintenance, run improvement cycle, garden, maintain apps. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the tend skill?
Run `npx @skills-hub-ai/cli install tend` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/tend/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does tend work with?
tend runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the tend skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use tend after installing it?
In Claude Code, type `/tend` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the tend skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.