status
Scannednpx machina-cli add skill NorthShoreAutomation/trellis/status --openclawUser Input
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
Instructions
1. Git Status (always available)
Gather git information:
git branch --show-current
git status --short
git rev-list --left-right --count @{upstream}...HEAD 2>/dev/null
git log --oneline -5
Display:
- Current branch name
- Count of uncommitted changes (staged + unstaged + untracked)
- Ahead/behind remote (if tracking branch configured; if not, note "no upstream configured")
- Last 5 commit summaries
2. Beads Status (if available)
- Check if
bdcommand is available:command -v bd - Check if
.beads/directory exists in the repository root
If beads is available and initialized:
Run these commands:
bd stats --json
bd ready --json
bd blocked --json
bd list --status=in_progress --json
Display overall progress:
BEADS PROGRESS:
┌─────────────────┬───────┬────────────────────────────────┐
│ Status │ Count │ Progress │
├─────────────────┼───────┼────────────────────────────────┤
│ Open │ [N] │ [bar] │
│ In Progress │ [N] │ [bar] │
│ Closed │ [N] │ [bar] │
└─────────────────┴───────┴────────────────────────────────┘
Total: [N] issues | Complete: [N]%
Display ready work (unblocked tasks available for pickup):
READY WORK ([N] tasks):
• [id] [priority] [title]
• [id] [priority] [title]
...
Display in-progress work:
IN PROGRESS ([N] tasks):
• [id] [priority] [title]
...
Display blocked work:
BLOCKED ([N] tasks):
• [id] blocked by: [dependency-ids]
...
If beads is NOT available or not initialized:
Skip this entire section. Display a single line:
Beads: not configured (optional — install beads and run `bd init`)
3. Health Checks (always available)
Run health checks and report results:
| Check | How | Pass | Fail |
|---|---|---|---|
| Working tree clean | git status --short is empty | "Working tree clean" | "[N] uncommitted changes" |
| Remote tracking | git rev-parse --abbrev-ref @{upstream} succeeds | "Tracking [remote/branch]" | "No upstream configured" |
| Merge conflicts | git diff --name-only --diff-filter=U is empty | "No merge conflicts" | "[N] files with conflicts" |
If beads is available, also check:
| Check | How | Pass | Fail |
|---|---|---|---|
| Beads daemon | bd sync --status | "Daemon running" | "Daemon not running" |
| Dependency cycles | bd dep cycles is empty | "No dependency cycles" | "[N] cycles detected" |
Display results:
HEALTH:
[pass/fail] Working tree clean
[pass/fail] Remote tracking configured
[pass/fail] No merge conflicts
[pass/fail] Beads daemon running (if beads available)
[pass/fail] No dependency cycles (if beads available)
4. Quick Actions (contextual)
Suggest next steps based on the current state:
| Condition | Suggestion |
|---|---|
| On main/master branch | /trellis:scope "description" to start new work |
| On feature branch with uncommitted changes | /trellis:push to commit and push |
| On feature branch, clean tree | /trellis:scope to continue working or start new scope |
| PR exists for current branch | /trellis:release to merge and publish |
| Beads has ready work | /trellis:implement to execute tasks |
| No CODEMAP.yaml exists | /trellis:codemap to map the codebase |
Display the top 2-3 most relevant suggestions:
NEXT STEPS:
• [suggestion with command]
• [suggestion with command]
User Arguments
--json: Output all gathered data as raw JSON (git status, beads stats, health checks)--quiet: One-line summary:[branch] | [N] changes | [N]% complete | [N] ready--verbose: Show all details including full commit messages, all beads issues, and extended health checks
Notes
- This command is read-only; no modifications are made to files, git, or beads state
- Beads is entirely optional; the command is fully functional with git-only information
- If any individual command fails (e.g.,
bd stats), warn but continue with remaining checks - To check for an existing PR, use
gh pr view --json number,title,state 2>/dev/null
Source
git clone https://github.com/NorthShoreAutomation/trellis/blob/main/skills/status/SKILL.mdView on GitHub Overview
This skill consolidates Git state, optional Beads data, and health checks to give a quick health snapshot of your project. It exposes the current branch, uncommitted changes, ahead/behind status, recent commits, and session recovery readiness to help you decide what to do next.
How This Skill Works
It runs core Git commands to capture branch, status, and recent commits, and reports those results. If Beads is installed and initialized, it also runs bd stats, bd ready, bd blocked, and lists in_progress items, displaying an overall progress and ready work. Finally, it performs routine health checks and formats a concise HEALTH section and NEXT STEPS.
When to Use It
- Starting work on a feature branch to verify branch state and recent activity
- Preparing a PR or merge to understand readiness and any blockers
- Investigating repo health after upstream changes or conflicts
- When Beads is used to manage tasks and you want to surface progress and ready work
- Before a session recovery or re-attaching to a previous work session
Quick Start
- Step 1: Run git branch --show-current and git status --short to capture branch and changes
- Step 2: If beads is installed, run bd stats --json; bd ready --json; bd blocked --json; bd list --status=in_progress --json
- Step 3: Review the HEALTH block and use NEXT STEPS to decide next actions
Best Practices
- Run the status check frequently to catch uncommitted changes early
- Where beads is available, rely on beads sections to surface ready and in_progress work
- Always read the HEALTH block and interpret pass/fail results before merging
- If upstream is not configured, note the lack of remote tracking and adjust expectations
- Use NEXT STEPS to drive concrete actions and reduce context switching
Example Use Cases
- On main, git status shows a clean working tree, 2 commits ahead, and 1 untracked file; beads shows 1 open task and 2 in_progress tasks
- Feature branch has uncommitted changes and a PR exists; the health report suggests pushing changes and updating the PR
- Beads is not configured; the report includes a Beads: not configured line and only Git health is shown
- Remote tracking is configured and there are no merge conflicts; the health report indicates good readiness for merge
- Multiple cards in beads with Ready and In Progress; the NEXT STEPS suggest implementing the top ready item