# Work

> >

- **Type:** Skill
- **Install:** `agentstack add skill-mdproctor-cc-praxis-work`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [mdproctor](https://agentstack.voostack.com/s/mdproctor)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [mdproctor](https://github.com/mdproctor)
- **Source:** https://github.com/mdproctor/cc-praxis/tree/main/work

## Install

```sh
agentstack add skill-mdproctor-cc-praxis-work
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# work

Unified entry point for the work lifecycle. Detects state and routes to the
correct skill — developer says `work` to begin, `work end` to close,
`work pause` to save and switch, `work resume` to return to paused work.

---

## Routing

**Step 1 — Parse the invocation**

| Invocation | Route to |
|------------|---------|
| `work` or `work start` | → detect state (Step 2) |
| `work end` | → **work-end** immediately |
| `work pause` | → **work-pause** immediately |
| `work resume` | → **work-resume** immediately |

**Step 2 — Detect state (for `work` alone)**

```bash
python3 ~/.claude/skills/project-init/ctx.py
```

Read `WORKSPACE` and `CURRENT_BRANCH` from the output, then check pause stack state:

```bash
STACK_FILE="$WORKSPACE/design/.pause-stack"
STACK_DEPTH=$(grep -c "^- branch:" "$STACK_FILE" 2>/dev/null || echo 0)
IS_MAIN=$([ "$CURRENT_BRANCH" = "main" ] && echo "yes" || echo "no")
```

| Detected state | Action |
|---------------|--------|
| On main, stack empty | → **work-start** — begin new work |
| On main, stack has 1+ entries | → show stack picker (Step 3) |
| On a feature branch | → ask: end or pause? (Step 4) |

**Step 3 — Stack picker (on main, 1+ paused branches)**

Show paused branches with age and note. Adapt phrasing to stack depth:

```
You have  paused branch(es):
  1.   #  paused  ago
  2.   #  paused  ago   (if N > 1)
  ...

Resume one, or start something new? (1 / 2 / ... / new)
```

- Number → **work-resume** with that branch pre-selected
- `new` → **work-start**

If stack depth > 3, prefix with: `⚠️  Stack has  paused branches — consider closing some before adding more.`

**Step 4 — On feature branch: ask once**

> "You're on ``. What do you want to do?
> 1. **end** — close this branch, merge, push, write handover, return to main
> 2. **pause** — commit WIP, push to stack, switch to main (resume later)
> 3. **wrap** — end session but keep branch open (write handover for next session)"

Route to work-end, work-pause, or handover based on answer.

---

## Skill Chaining

**Routes to:**
- `work-start` — when beginning new work from main
- `work-resume` — when returning to a paused branch from main
- `work-end` — when closing a completed branch (includes full wrap + HANDOFF.md)
- `work-pause` — when saving state to switch to something else
- `handover` — when ending the session but keeping the branch open (mid-work wrap)

**This skill does not implement the lifecycle itself** — it detects state and
delegates. All logic lives in the individual lifecycle skills.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [mdproctor](https://github.com/mdproctor)
- **Source:** [mdproctor/cc-praxis](https://github.com/mdproctor/cc-praxis)
- **License:** Apache-2.0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** yes
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-mdproctor-cc-praxis-work
- Seller: https://agentstack.voostack.com/s/mdproctor
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
