agentleFS
baodhgbaodhg/FLOW/skills/flow-execute/SKILL.md

flow-execute

Skill2 starsChanged 6 days agoMITView on GitHub

Dùng khi có plan ở trạng thái APPROVED và tới lúc bắt tay làm, khi quay lại làm tiếp sau phiên mới hoặc sau khi ngữ cảnh bị nén, hoặc ngay trước khi commit, push, mở PR trong repo có `.flow/`. Người dùng hay nói "bắt đầu đi", "làm theo plan", "code đi", "làm tiếp", "chạy hết task".

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    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:

    Commit theo commit.* của profile.

    line 47

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

flow-execute — thi hành

Plan APPROVED thì tự đi hết danh sách task tới mức autonomy.level. Ngoài sáu điểm dừng dưới, không dừng để hỏi "làm tiếp không", vì người dùng đã duyệt cả danh sách.

autonomy.levelĐược làm tới
localCommit trên nhánh cục bộ
prPush nhánh và mở PR
mergeMerge khi mọi cổng xanh, trừ phần thuộc branches.ownerOnly

Sáu điểm dừng phải hỏi

  1. Sắp ghi lên nhánh được bảo vệ.
  2. Việc tiếp theo vượt mức tự chủ.
  3. Thao tác không đảo ngược trên môi trường dùng chung.
  4. Cần trình duyệt tương tác trên môi trường thật.
  5. Plan sai phạm vi, hoặc review chặn lặp lại.
  6. Sắp vi phạm một luật critical.

Pre-flight

Một lần ở đầu, chạy lệnh thật, không suy từ plan:

  • flow where, nhánh hiện tại, cây làm việc sạch
  • flow plan status <slug> EXECUTING
  • flow gates --changed --print execute
  • flow verify để có mốc trước khi sửa

Cây đang dùng chung với phiên khác thì sang skill flow-worktree.

Vòng mỗi task

  1. flow task next <slug>
  2. Tìm trước khi viết: flow dup find "<ý đồ>", grep. Gặp lỗi import thì sửa import, không tạo lại module.
  3. Viết test, chạy thấy đỏ đúng lý do. Chi tiết ở skill flow-test.
  4. Viết mã vừa đủ.
  5. Chạy test thấy xanh.
  6. Có helper mới: flow task note <slug> "formatDueDate ở loan/format.ts" --kind helper, để task sau và subagent khác tìm được.
  7. git add <tệp cụ thể>. Không git add -A, vì sẽ cuốn theo thứ của người khác.
  8. flow check --staged
  9. flow commitmsg --message "…"
  10. Commit theo commit.* của profile.
  11. flow task done <slug> <Tn> --commit <sha>
  12. Định kỳ, sau vài task hoặc sau task rủi ro: review độc lập bằng skill flow-review.

Công cụ cản trở hay tài liệu sai thì ghi ngay, không để trôi:

flow task note <slug> "…" --kind friction

Không sửa công cụ kiểm để qua. check đỏ thì sửa mã, hoặc hỏi người dùng nếu nghĩ công cụ sai.

Phiên mới hoặc sau khi nén

flow where, rồi flow task next <slug>. Đó là đủ để tiếp tục. Không dựa vào trí nhớ về trạng thái; plan và git mới là nguồn đúng.

Subagent song song

  • Mỗi subagent một worktree, dùng skill flow-worktree.
  • Giao đúng phạm vi: task nào, tệp nào, helper nào đã có, luật nào áp dụng.
  • Sau mỗi đợt chạy flow dup check --base <nhánh gốc>, vì các subagent không nhìn thấy nhau và dễ viết trùng.
  • Kết quả của subagent phải được kiểm lại bằng lệnh, không chỉ đọc báo cáo.

Hết task

Chuyển sang skill flow-post. Chưa qua bước đó thì chưa được nói xong.

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.