Picks the flow for a task by its risk class: the default flow for routine and elevated changes, the critical flow for critical ones, and research, docs passes and batches. Use before the first edit in a repository, before issue or pull request work, and before research with two or more items.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Workflow?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/cedarloom-workflow)
---
name: workflow
description: "Picks the flow for a task by its risk class: the default flow for routine and elevated changes, the critical flow for critical ones, and research, docs passes and batches. Use before the first edit in a repository, before issue or pull request work, and before research with two or more items."
user-invocable: false
metadata:
writes: "The risk line `Risk: <class> (<reason>)` before the first edit; commits and a pull request in the project's convention."
---
# Workflow
1. **Classify.** Before the first edit or command, write `Risk: <routine|elevated|critical> (<reason>)` by Classify the risk in the working rules.
- A change to authentication, permissions, secrets, input validation, production data or deploy configuration is critical. A file under `sensitivePaths` (`cedarloom.json`) makes it at least elevated. Keep a class the user or a spec gives, or raise it. Unsure whether critical: critical. Riskier work: a new line before the next edit.
- Routine and elevated run the default flow below; critical runs the [critical flow](critical.md).
- Research: [research.md](research.md). A docs pass over several documents: [docs.md](docs.md). A bug of unknown cause: [diagnose.md](diagnose.md) first. A request that reads two ways: [settle.md](settle.md) first.
2. **Build** in this session: the change and the callers, tests and docs it breaks, with targeted checks after each edit. Commit by the project's convention, else [Conventional Commits 1.0.0](https://www.conventionalcommits.org/en/v1.0.0/).
3. **Review once.** A fresh subagent (`cl-workflow:review`) runs `/code-review high` on the branch's diff; a review that reports void (its context compacted) reruns as parts, one fresh reviewer each. A routine, behavior-free change (docs text, comments, copy, a rename) skips steps 3 and 4.
4. **Fix once.** Fix the real Blocking and Important findings ([review-findings.md](review-findings.md)), then a fresh subagent (`cl-workflow:recheck`) rechecks the fix diff alone. Left after it: Blocking keeps the pull request open and goes to the coordinator or owner; Important becomes a follow-up issue; nits drop.
5. **Pull request.** Run the project's full gate once after the last edit, push, and open the pull request. Add the label `cl:session` where the repository has it.
6. **Follow up until done.** Wait on CI with a blocking watch (`gh pr checks <n> --watch --interval 30`).
- Red CI: at most 2 fix attempts, each with the recheck of step 4, then hand off with the failing log.
- Answer or fix each trusted review comment once. Review bots get the leftover rule of step 4 and start no new round.
- Done: merged through the project's merge path, or handed off to the coordinator or owner with a stated reason. Then remove `cl:session`.
## Batch
When the user asks for it or names several tasks for one branch: build them one after another, each with its own Risk line. A critical task leaves the batch. Steps 3 to 6 run once for the branch.
## Roles and texts
- Subagents run on the roles of the SessionStart model line: review on `review`; recheck, gather and research on `light`. This session builds and fixes. Codex, or no plugin agents: a general subagent briefed with the agent's lines.
- Read-only lookups (searches, logs, CI output, pull request status) go to `cl-workflow:gather`; independent items, one subagent each in parallel.
- GitHub texts: write only a kind's fields; `node <this skill's folder>/text.mts <kind> <fields file> <out file>` writes the `--body-file`. A project template wins: fill its sections, then `text.mts check <file> <template>`.
- Questions go where the task brief sends them, else one issue per task in the project's tracker, else the report.
- Report done as Verify in proportion says. After a compaction, reread this skill.