agentleFS
sabirmgdsabirmgd/terminal-first-goal-loop/skills/workflow/SKILL.md

workflow

Skill2 starsChanged 2 months agoMITView on GitHub

Run the real front door for terminal-first work. Use when a task starts as a message, ticket, screenshot, voice dump, review request, bug report, or half-formed idea and needs to become a scoped lane with the right context, proof, worktree, model, and stop rules before external actions.

71 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use build-keil, can-debug and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ZhongYechengSkill

    build-keil

    当需要通过 Keil MDK 命令行编译嵌入式工程,调用自带脚本解析工程文件、执行构建并定位固件产物时使用。

    Also in 3 projects that use this

  • ZhongYechengSkill

    can-debug

    当需要调试 CAN 总线通信时使用,支持通过 USB-CAN 适配器监听、发送 CAN 帧和扫描节点。

    Also in 3 projects that use this

  • iPlug2Skill

    build-cmake

    Build an iPlug2 plugin project using CMake with Ninja, Xcode, or Visual Studio generators

    Also in 3 projects that use this

  • +9 more from ZhongYecheng

The file

Show its rules and text

We split this skill into the rules it gives an agent

25 rules. 0 are common, 22 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 55 edited versions we read keep these.

  • 22

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use it when the task is still forming and the agent needs the right lane, context, proof, isolation, and authority before real execution …

    line 10
  2. Distinctive:

    Before planning or editing:

    line 25
  3. Distinctive:

    Read the local guidance that governs the current repository.

    line 27
  4. Distinctive:

    Treat stale chat memory as a clue, not authority.

    line 30
  5. Distinctive:

    If the repository has its own sync or refresh ritual, use it.

    line 32
  6. Distinctive:

    Every task gets one primary lane first:

    line 36
  7. Distinctive:

    If the overall initiative spans several lanes, pick the first lane that should happen now.

    line 48
  8. Distinctive:

    call notes or transcript summaries

    line 59
  9. Very specific:

    Use context when the task needs several sources or when freshness, provenance, email, meeting, ticket, documentation, or design boundaries …

    line 65
  10. Distinctive:

    prefer current measured behavior over stale recollection

    line 77
  11. Distinctive:

    prefer the latest approved decision over an older draft

    line 78
  12. Distinctive:

    keep the disagreement visible when it changes implementation or risk

    line 79
  13. Distinctive:

    Do not hide uncertainty by writing a smoother summary.

    line 81
  14. Distinctive:

    If a task is read-only, keep it read-only all the way through the lane.

    line 93
  15. Distinctive:

    Every task needs an honest proof path.

    line 97
  16. Distinctive:

    If the task will change code and other mutating work may run in parallel:

    line 121
  17. Distinctive:

    create or use an isolated worktree

    line 123
  18. Distinctive:

    keep the main checkout untouched if it is dirty

    line 125
  19. Distinctive:

    If the stack has expensive startup, keep shared heavy services warm, give each mutating task its own slot or isolated runtime surface, and …

    line 127
  20. Distinctive:

    Never let two mutating agents edit the same active checkout.

    line 129
  21. Very specific:

    use release-proof when the real question is deployed identity, rollout state, health, traffic, or exact runtime proof

    line 174
  22. Very specific:

    use jira-manager, docs-manager, status-report, or whatsapp-me when the task is to turn work into a ticket, document, handoff, saved …

    line 182
  23. Distinctive:

    Keep the source and authority visible.

    line 184
  24. Distinctive:

    Stop and hand back when any of these are true:

    line 188
  25. Distinctive:

    If the task is large, add milestones so later percentage updates can be tied to proof instead of optimism.

    line 213

“Common” is measured: kept by at least 6 in 10 of the 55 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

Workflow

This is the front door.

Use it when the task is still forming and the agent needs the right lane, context, proof, isolation, and authority before real execution starts.

It owns:

  • task intake
  • lane selection
  • context prefetch
  • proof definition
  • human gate detection
  • worktree and runtime isolation choice
  • model and role choice
  • routing to the next concrete workflow

Start here

Before planning or editing:

  1. Read the local guidance that governs the current repository.
  2. Inspect current git state, active worktrees, and whether the checkout is dirty.
  3. Refresh current source truth when the task depends on a moving target such as a branch, PR, issue, design, inbox, or deployment.
  4. Treat stale chat memory as a clue, not authority.

If the repository has its own sync or refresh ritual, use it. Otherwise use the lightest safe equivalent such as git fetch, git status, and git worktree list.

Choose one lane

Every task gets one primary lane first:

  • discovery and design
  • feature delivery
  • bug reproduction
  • bug fixing
  • review and polish
  • operations and release
  • integrations and tooling
  • knowledge and communication
  • maintenance and simplification

If the overall initiative spans several lanes, pick the first lane that should happen now.

Pull only the context that matters

Possible sources:

  • repository code, tests, and local guidance
  • issue tracker tickets and comments
  • docs or wiki pages
  • design files or screenshots
  • email threads
  • call notes or transcript summaries
  • logs, traces, or saved repro evidence
  • current PR or review discussion

Pull a source only when it changes the decision.

Use context when the task needs several sources or when freshness, provenance, email, meeting, ticket, documentation, or design boundaries matter. Use jira-manager or docs-manager directly when only one concrete system is needed.

Provenance and freshness rules

For every important fact, keep three things visible:

  • source
  • freshness or date
  • whether it is confirmed behavior or only intent

When sources disagree:

  1. prefer current measured behavior over stale recollection
  2. prefer the latest approved decision over an older draft
  3. keep the disagreement visible when it changes implementation or risk

Do not hide uncertainty by writing a smoother summary.

Read-only versus write authority

Default posture:

  • reading, planning, local analysis, and local non-destructive proof may proceed
  • local code mutation may proceed when the user asked for delivery and the scope is clear
  • external writes do not proceed without explicit authority

External writes include tickets, docs, comments, PR updates, merge, deploy, release, rollback, traffic changes, and destructive cleanup outside clearly owned local scratch state.

If a task is read-only, keep it read-only all the way through the lane.

Define proof before launch

Every task needs an honest proof path.

Possible proof levels:

  • static or type check
  • unit or component test
  • integration or API test
  • local hot-reload request
  • isolated slot or sandbox proof
  • browser journey
  • exact runtime or deployed proof

Pick the cheapest proof that still proves the claim. Do not make the most expensive proof the default inner loop if a cheaper one can expose the same failure.

Pick the execution shape

Execution shapes:

  • direct loop: one surface, fast proof, likely single-agent
  • bounded goal: long-running work with milestones and low human touch
  • watch loop: repeated state checks with a cursor and quiet path

Worktree and runtime isolation

If the task will change code and other mutating work may run in parallel:

  • create or use an isolated worktree
  • branch from a clean, current base
  • keep the main checkout untouched if it is dirty

If the stack has expensive startup, keep shared heavy services warm, give each mutating task its own slot or isolated runtime surface, and stop only the slot when that task ends.

Never let two mutating agents edit the same active checkout.

Choose the role, then the model

Pick the role first:

  • fast reader for retrieval and inventory
  • strong builder for implementation
  • deep reasoner for architecture or ambiguous bugs
  • independent reviewer for correctness and risk
  • verifier for final proof

Then pick the lightest model that fits that role.

Route the task

Feature delivery:

  • confirm user journey
  • pull design if it exists
  • define acceptance proof
  • isolate code changes
  • hand off to worktree, then dev-flow or hot-reload when implementation begins

Bug reproduction:

  • translate report into expected behavior
  • choose the narrowest proof surface
  • keep it read-only
  • hand off to bug-repro

Bug fixing:

  • carry the repro evidence forward
  • define the durable failing test home
  • isolate the worktree
  • define shipped proof
  • hand off to bugfix

Review and polish:

  • hand off to polish when implementation works and the job is now review, simplification, and signoff proof

Operations and release:

  • use release-proof when the real question is deployed identity, rollout state, health, traffic, or exact runtime proof

Integrations and tooling:

  • route here when a repeated human step should become a CLI, MCP-backed action, API wrapper, or deterministic script

Knowledge and communication:

  • use jira-manager, docs-manager, status-report, or whatsapp-me when the task is to turn work into a ticket, document, handoff, saved decision, or progress update

Keep the source and authority visible. Do not make external writes implicitly.

Human gates

Stop and hand back when any of these are true:

  • expected behavior is genuinely unclear
  • there are several valid fixes with different product outcomes
  • proof depends on missing access or unavailable runtime
  • the next step is an external write without explicit authority
  • destructive cleanup would touch ambiguous or unowned state
  • a release, merge, deploy, or rollback decision is still human-owned

Output contract

Return a compact start brief:

WORKFLOW | lane=<lane> | execution=<direct|goal|loop>
OUTCOME | <plain-language result>
CONTEXT | <only the sources that matter, with freshness>
PROOF | <the proof path that will make this real>
ISOLATION | <none or branch/worktree/slot decision>
ROLES | <maker, reviewer, verifier, or other needed roles>
HUMAN GATE | <none or exact decision>
NEXT | <next skill or next concrete action>
STOP | <what should pause the workflow>

If the task is large, add milestones so later percentage updates can be tied to proof instead of optimism.

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.