Skill
Tổ chức lại project file an toàn với ak:project-organization
Audit path và name, review move table rõ ràng, rồi áp dụng repository organization đã duyệt mà không overwrite file hay bỏ qua local convention.
Dùng ak:project-organization để quyết định nơi artifact mới nên nằm hoặc tổ
chức lại file hiện có qua migration có thể review. Skill cung cấp general
directory, naming và Markdown pattern, nhưng convention hiện tại cùng tool
ownership của repository vẫn là authority.
Chọn advisory hoặc organize mode có chủ đích
Dùng ak:project-organization khi
- Bạn cần output path cùng name nhất quán cho plan, report, document, test, script hoặc asset mới.
- File hiện có đặt sai chỗ, đặt tên không nhất quán hoặc khó điều hướng.
- Bạn muốn proposed migration
from→totrước khi move.
Chọn workflow khác khi
- Bạn thay đổi source architecture thay vì file organization. Dùng
ak:plantrước. - Formatter, framework generator hoặc repository-specific script sở hữu layout.
- Bạn chỉ cần tìm file. Dùng
ak:scout. - Target chứa generated, vendored, secret hoặc machine-owned content không nên move thủ công.
Chuẩn bị repository và runtime
Đọc repository instruction, current directory convention, ignore rule, build configuration, import, link và ownership marker. Giữ unrelated work và xác định request chỉ advisory hay cấp quyền move.
| Runtime | Cách gọi | Ranh giới khả dụng |
|---|---|---|
| Claude Code | /ak:project-organization ... | Phân phối native có thể scan, propose và áp dụng file operation đã duyệt bằng shell cùng edit tool khả dụng. |
| Cursor | /ak:project-organization ... | Cách gọi slash đã được người dùng xác minh; approval và filesystem behavior tương đương chưa được thiết lập. |
| Codex | $ak:project-organization ... | Native discovery được hỗ trợ; file operation và approval behavior phụ thuộc Codex session. |
Chạy Skill
/ak:project-organization docs scripts "Audit naming and placement, preserve repository conventions and links, show a from-to table, and wait for approval before moving anything."/ak:project-organization docs scripts "Audit naming and placement, preserve repository conventions and links, show a from-to table, and wait for approval before moving anything."$ak:project-organization docs scripts "Audit naming and placement, preserve repository conventions and links, show a from-to table, and wait for approval before moving anything."| Mode | Trigger | Tác dụng |
|---|---|---|
| Advisory | Workflow khác hỏi artifact nên nằm đâu | Trả proposed path, name và relevant template; không move file |
| Organize | Bạn gọi Skill với target file hoặc directory | Scan, analyze, propose, chờ confirmation, execute move đã duyệt rồi verify |
General fallback gồm docs/ cho durable documentation,
plans/<timestamp>-<slug>/ cho multi-file plan, plans/reports/ cho standalone
report, tests/ hoặc test/ cho test, scripts/ cho utility và
assets/<type>/ cho media. Chỉ áp dụng khi project không có stronger convention.
Hiểu các giai đoạn có thể quan sát
- Scan: liệt kê target file cùng surrounding structure liên quan mà không traverse excluded hoặc protected area.
- Analyze: so sánh placement, name, link, import và body shape hiện tại với repository rule, rồi mới với fallback pattern của Skill.
- Propose: trình bày mọi move hoặc rename thành cặp source và destination rõ ràng, gồm conflict cùng reference update cần thiết.
- Confirm: chờ duyệt migration set chính xác. Yêu cầu audit không tự cấp quyền execution.
- Execute: chỉ tạo directory cần thiết và áp dụng move hoặc rename đã duyệt mà không overwrite destination.
- Verify: hiển thị final structure, changed reference, repository status và violation hoặc skipped target còn lại.
Bảo vệ repository state
Rename có thể là code change
Move file có thể làm hỏng import, link, build input, ownership rule hoặc generated-file contract dù content không đổi. Review downstream reference và validation trước khi duyệt migration.
- Không overwrite destination hiện có. Resolve từng conflict rõ ràng.
- Không chạm
.git/,node_modules/hoặc.envfile; tôn trọng.gitignorecùng machine-owned directory marker. - Ưu tiên Git-aware move trong tracked repository để rename evidence có thể review. Move không cấp quyền commit, push hoặc xóa history.
- Ecosystem naming hiện có thắng generic fallback. Không rename Java, Go, Rust, framework hoặc generated file chỉ để ép kebab-case.
- Chỉ thêm
.gitkeepcho empty directory khi repository chủ động track directory đó.
Xác minh output và evidence
Advisory result hoàn chỉnh nêu proposed category, exact path, naming mode và
repository evidence hỗ trợ. Organize run hoàn chỉnh còn cung cấp approved move
table, conflict đã resolve, directory đã tạo, reference đã update, final tree,
git status cùng focused validation result.
Với Markdown, xác nhận body structure đã chọn khớp consumer thực tế của document. Plan, report, journal, ADR, guide và spec có template khác nhau; generic template không được thay required frontmatter hoặc site navigation rule.
Xử lý sự cố an toàn
| Triệu chứng | Bước tiếp theo an toàn |
|---|---|
| Repository rule khác proposed layout | Theo repository, sửa table và ghi lý do không dùng fallback. |
| Destination đã tồn tại | Dừng move đó, so sánh hai file và hỏi quyết định merge, alternate name hoặc skip rõ ràng. |
| Import hoặc link sẽ hỏng | Thêm exact reference update vào proposal trước approval và validate sau move. |
| Scan gồm generated hoặc secret material | Bỏ target đó và kiểm tra ownership hoặc ignore marker trước khi tiếp tục. |
| Nhiều file sẽ move | Chia migration thành group có thể review với verification gate sau mỗi group. |
| Unrelated work xuất hiện trong diff | Dừng, giữ nguyên và thu hẹp ownership trước mutation tiếp theo. |
| Runtime không tìm thấy Skill | Xác nhận target cùng scope, restart session, rồi làm theo Runtime không tìm thấy Skill hoặc Agent. |
Biết các giới hạn hiện tại
- Fallback taxonomy không thể infer team intent chưa ghi hoặc thay thế framework, build cùng package-manager convention.
- Filesystem check không chứng minh moved path an toàn nếu thiếu import, link, test và build evidence liên quan.
- Bằng chứng cách gọi Cursor không thiết lập full filesystem parity.
- Stable và beta chứa source cùng reference template
ak:project-organizationgiống nhau.
Dùng ak:plan trước khi organization làm đổi module boundary, hoặc
ak:git sau review khi bạn rõ ràng muốn commit kết quả.
Điều tra threat intelligence công khai với ak:cti-expert
Chạy CTI hoặc OSINT case có giới hạn, giữ bằng chứng về nguồn và confidence, rồi xuất report có thể review mà không coi inference là fact.
Tóm tắt công việc đang diễn ra với ak:watzup
Tạo handoff ngắn dựa trên evidence từ local Git ref, worktree, unfinished plan và roadmap file mà không thay đổi checkout.