Agent Skills › leepokai/Codync › after-change

after-change

GitHub

在提交前对代码变更进行审查、修复、清理及端到端测试,确保正确性、完整性和可维护性。

.agents/skills/after-change/SKILL.md leepokai/Codync

Trigger Scenarios

代码变更完成后准备提交时 明确要求运行 after-change 工作流时

Install

npx skills add leepokai/Codync --skill after-change -g -y
More Options

Non-standard path

npx skills add https://github.com/leepokai/Codync/tree/main/.agents/skills/after-change -g -y

Use without installing

npx skills use leepokai/Codync@after-change

指定 Agent (Claude Code)

npx skills add leepokai/Codync --skill after-change -a claude-code -g -y

安装 repo 全部 skill

npx skills add leepokai/Codync --all -g -y

预览 repo 内 skill

npx skills add leepokai/Codync --list

SKILL.md

Frontmatter
{
    "name": "after-change",
    "description": "Review, fix, clean up, and end-to-end test a finished Codync code change of our own before commit (issues and PRs from other people follow docs\/guides\/issue-pr-review.md). Use after affected tests pass or when explicitly asked to run the after-change workflow."
}

After change

Run Codync's review → fix → E2E workflow with Codex's available agent and computer-use tools. This is an instruction-driven skill; it does not execute the Claude workflow JavaScript or require Claude Code.

Scope and inputs

Resolve the repository root from the current working directory. Read its AGENTS.md and clean-code guide, plus instructions for the affected directories. Resolve all repository paths against that root, including when invoked from host/ or another subdirectory.

Accept ordinary language or an object with:

  • change: what changed and which flows to walk; default to this task's committed and uncommitted work.
  • base: comparison ref, default origin/dev.
  • e2e: minimal or full; default to minimal, but use full for platform code, packaging, desktop main-process changes, or an explicit full request.

Record the absolute worktree path, base commit, owned files/hunks, relevant tests already run, and changed user flows. Inspect git diff <base> and git status --short, including new files. The diff is candidate scope, not permission to change other agents' work. If the base does not exist, report it and resolve the intended base before review. Do not reset or stash work to obtain a clean diff.

For docs/config-only changes with no runtime behavior, validate the affected artifacts and report E2E as not_run with the reason; do not launch apps or the full review pipeline. Executable tools and behavior-changing configuration still need applicable checks. Finish prerequisite tests before reviewing code, or explicitly report why they cannot run.

Review

Use three read-only subagents in parallel when delegation is available; otherwise perform the three reviews yourself and disclose the fallback. Respect the session's concurrency limit and reuse finished agents for later phases.

Give every reviewer the same absolute worktree, base commit, owned scope, change description, and relevant repository instructions. They must not edit, commit, start apps, or spawn further agents.

Reviewer Focus
Correctness Concrete bugs, regressions, error handling, security, and compatibility with older hosts/clients; consult docs/reference/compatibility.md.
Completeness All affected clients, stale documentation (including the user manual page, docs/guides/user-docs.md), missing behavioral tests, release versions and iOS What's New requirements.
Refactor Responsibility splits, files over ~500 lines, long functions, layer leaks, missed reuse, and applicable language conventions. Only suggestions worth their diff.

Each finding includes file, line when available, severity (high, medium, low), summary, concrete failure scenario (or cost of leaving a refactor), and suggested fix. Empty results are valid. Style preferences alone are not defects.

After all reviews finish, have a read-only verifier try to refute each correctness/completeness finding against the code. Deduplicate findings; return confirmed and refuted, with evidence or reasons. Unsupported claims are refuted rather than silently promoted to bugs; unavailable evidence must be disclosed. Keep refactor suggestions separate. If a reviewer or verifier fails, retry or perform that work yourself; missing output is not an empty successful review.

Fix and cleanup

Assign one editor ownership of the scoped files/hunks, or do the editing yourself. Tell any editor it is not alone in the codebase: preserve other agents' edits and adapt to them. Reviewers remain read-only, and subagents never commit or merge.

In one pass, fix confirmed findings at their root cause, apply worthwhile refactors, and clean up the change's own dead code, duplication, unclear names/comments and unused imports. Keep unrelated work out. Record applied changes and skipped suggestions with reasons. Follow the repository's release/version rules when shipped code changes; do not bump for this skill or documentation alone.

Run the affected builds/tests after the edits. Reuse still-valid results; rerun when new edits or failures warrant it. Do not proceed to app E2E with an unresolved build/test failure. Preserve enough separation to commit refactors apart from behavior changes as required by the repository.

E2E

Give one tester (or yourself) the final change, exact flows and E2E mode. Read the relevant parts of docs/guides/development.md, docs/guides/dev-app.md, and, for Windows, docs/guides/windows-testing.md before starting apps.

  • Stop only this task's old app/host processes before rebuilding or installing. Never stop the shared Codync Dev, production app, or another session's sandbox. Track what you start.
  • Prefer npm run dev in apps/desktop in the change's isolated worktree. When testing from the shared checkout, use its documented sandbox mode. Restart for main-process/preload changes. Package only when the flow needs capabilities unavailable unpackaged.
  • When host/ is unchanged, reuse a compatible built host through CODYNC_HOST_BIN as the development guide describes. When it changed, build the correct host for this worktree. Apple build output stays in this checkout's build/dd.
  • Walk the changed flows with available Computer Use tools on the actual apps. iPhone checks use an iOS Simulator through Device Hub; Android checks use its emulator. Builds and unit tests do not substitute for UI checks. No changed client UI here means no UI parity work.
  • Minimal E2E covers this computer's platform. Full E2E also covers installed Lima Linux and UTM Windows VMs; report absent VMs rather than creating them. Validate affected clients as required by repository instructions, and report unavailable tools/devices explicitly.
  • Walk each flow once, using short bot messages. Record platform, flow, result (pass, fail, preexisting, not_run), and observed evidence or reason. Use preexisting only with evidence it fails without this change; otherwise retain the uncertainty as a failure. Never disturb another worktree to prove a baseline.

Fix change-caused E2E failures, run the checks touched by the fix, and walk only the failed flows again. Keep retries bounded to one E2E fix/retest round; if still failing, report unresolved failures and keep the work available for follow-up instead of calling it green.

Report and handoff

Report:

  • Review: confirmed findings and their disposition; refuted findings and why; incomplete review work.
  • Fix: fixes/cleanup/refactors applied, suggestions skipped and why, builds/tests and results.
  • E2E: each check's platform, flow, result and evidence; checks not run and why.
  • Next: readiness to commit, any unresolved failures or material skipped fixes, and any task-owned processes still running.

Do not label missing validation as passed. Follow the existing task's commit/merge/push authorization and the repository's handoff rules; the skill itself does not authorize publishing unrelated work. Only the coordinator performs git handoff.

Keep the change's development app running through review and until its merge is successfully pushed. On merge/push failure, preserve the worktree and its app. After successful push, stop the task-owned app, Vite and sandbox host, verify they exited, leave the worktree, and follow the clean-code guide's worktree/sandbox cleanup. Confirm the worktree contains no unmerged or other agents' work before removal; never remove the shared checkout. Stop other temporary processes you started when no longer needed.

Version History

  • d65753a Current 2026-11-02 08:42

Same Skill Collection

.claude/skills/animate/SKILL.md
.claude/skills/animation-vocabulary/SKILL.md
.claude/skills/apple-design/SKILL.md
.claude/skills/ask-sonner/SKILL.md
.claude/skills/emil-design-eng/SKILL.md
.claude/skills/find-animation-opportunities/SKILL.md
.claude/skills/improve-animations/SKILL.md
.claude/skills/pick-ui-library/SKILL.md
.claude/skills/product-launch-film/SKILL.md
.claude/skills/prototype/SKILL.md
.claude/skills/review-animations/SKILL.md
.claude/skills/write-swift/SKILL.md
.claude/skills/animate-expo/SKILL.md
.claude/skills/mobile-native/SKILL.md

Metadata

Files
0
Version
d65753a
Hash
87d4dbbc
Indexed
2026-11-02 08:42

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-03 07:52
浙ICP备14020137号-1