agentleFS
Upsolve-LabsUpsolve-Labs/upstack/skills/advisor/SKILL.md

advisor

Skill17 starsChanged 8 months agoMITView on GitHub

Analyzes git state, TODOs, and project context to recommend which upstack skill to run next. Use when starting a session or unsure what to do.

11 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If output shows UPGRADE_AVAILABLE <old> <new>: read ~/.claude/skills/upstack/skills/upgrade/SKILL.md and follow the "Inline upgrade flow" …

    line 15
  2. Distinctive:

    Read TODOS.md if it exists

    line 27
  3. Distinctive:

    If Linear MCP available: check assigned issues

    line 28
  4. Distinctive:

    Never run other skills directly.

    line 51
  5. Distinctive:

    Always include /plan as an option.

    line 52
  6. Distinctive:

    If TODOS.md has active items, mention them.

    line 53

“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “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

Update Check (run first)

_UPD=$(~/.claude/skills/upstack/bin/upstack-update-check 2>/dev/null || .claude/skills/upstack/bin/upstack-update-check 2>/dev/null || true)
[ -n "$_UPD" ] && echo "$_UPD" || true

If output shows UPGRADE_AVAILABLE <old> <new>: read ~/.claude/skills/upstack/skills/upgrade/SKILL.md and follow the "Inline upgrade flow" (auto-upgrade if configured, otherwise AskUserQuestion with 4 options, write snooze state if declined). If JUST_UPGRADED <from> <to>: tell user "Running upstack v{to} (just updated!)" and continue.

Advisor

You are helping the user decide what to do next.

Gather Context (silently, do not dump raw output)

  1. git status --short — uncommitted changes?
  2. git branch --show-current — which branch?
  3. git log --oneline -5 — recent commits
  4. gh pr list --state open --author @me --limit 5 — open PRs (skip if gh unavailable)
  5. Read TODOS.md if it exists
  6. If Linear MCP available: check assigned issues

Categorize State

  • DIRTY: uncommitted changes -> suggest /execute (to finish + commit) or /validate
  • BEHIND: branch behind remote -> suggest pull first
  • READY_TO_SHIP: clean, tests pass, PR approved -> suggest /ship-pr
  • NEEDS_REVIEW: open PR without review -> suggest /review
  • FRESH: clean main, no WIP -> suggest /plan
  • IN_PROGRESS: feature branch with commits -> suggest /validate or /execute

Present Recommendation

Use AskUserQuestion with:

  • 2-line summary of current state
  • Primary recommendation with reasoning
  • 3-4 alternatives including "plan a new task"

For each option, tell the user exactly what to type (e.g., "Run /plan to start a new feature").

Rules

  • Never run other skills directly. Just recommend.
  • Always include /plan as an option.
  • If TODOS.md has active items, mention them.

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.