Skip to content
Back to skills

After Change

ASecurity

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.

  • 2,597 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 9, 2026
ai-agentsjavascriptjavashellnodetestinggitapisecuritydocumentation

Works with

  • claude code
  • cli
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 4, 2026

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

Installs into .claude/skills of the current project.

Are you the author of After Change?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for After Change
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/leepokai-after-change/badge)](https://www.skillsdirectory.com/skills/leepokai-after-change)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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](../../../docs/guides/clean-code.md#after-every-change-review-e2e-cleanup), 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`.
- `tier`: `light`, `standard` or `full` forces the tier; `atLeast` raises a lower one. By default the plan script picks it.

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.

## Plan

Run `timeout 120 node tools/after-change/plan.mjs --base <base>` (plus `--tier <tier>` or `--at-least <tier>` when given) from the worktree and follow the JSON it prints: the tier, the review shape (`single` or `panel`), and the e2e plan (`walk`, `platforms`, `wholeSuite`, `specs`, `maestro`). The rules are in [after-change tiers](../../../docs/guides/after-change-tiers.md); don't second-guess them. If the script fails, use the full tier. When `walk` is false (docs, tools, Workers, CI, config), report E2E as `not_run` with the plan's reason and launch no app. Finish prerequisite tests before reviewing code, or explicitly report why they cannot run.

Every step has a time limit (reviewers 25 minutes, verifier 15, fix 30, e2e 20 / 40 / 90 by tier, at least 60 for the whole suite; a step that doesn't finish is reported as unfinished, and no e2e follows an unfinished fix pass) and so does every shell command: a foreground command with a timeout, `timeout <seconds>` around anything longer. Stop processes only by port or PID (`node tools/stop-port.mjs <port>`, `--sandbox` for the worktree's `npm run dev`, or `kill <pid>`), never `pkill -f`, whose pattern also matches the shell running it.

## Review

In the light tier (`review: single`) one read-only reviewer covers all three focuses below. Otherwise 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, large files that split cleanly, 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 the light tier, run this pass only for a confirmed finding. 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 the plan's e2e part. 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 on the actual apps as the [test stack](../../../docs/guides/test-stack.md) says: the desktop with the plan's Playwright specs (`timeout 1200 npm run e2e -- <specs>` against `npm run dev -- --cdp`), or the whole suite (`timeout 3000 npm run e2e`) only when the plan says `wholeSuite`; the phones with one Maestro run under the Maestro lock with the plan's tags (`--include-tags`, `--shard-all`, inside `timeout 1800`), none when it lists none, never the whole Maestro suite for now; Computer Use only for the native steps that guide lists. Add or update only the spec or flow each changed flow needs and touch no other test. Edit an existing test only for a reason that matches the behavior the change says it changes, and list each such edit with its reason; without such a reason the failing test found a regression, so report it as a fail instead of changing the test. iPhone checks use the worktree's own iOS Simulator (`Codync <sandbox name>`: `npm run dev` prints its udid, or the command that creates it when there is none yet; `npm run dev -- --prune` deletes it); Android checks use the shared `codync_worktree` emulator, the only one that may run (never a second AVD, never `codync_api36`, the maintainer's), one test at a time under its lock, with `pm clear` and the notification grant first ([test devices](../../../docs/guides/dev-app.md#worktree-sandboxes)). Builds and unit tests do not substitute for UI checks. No changed client UI here means no UI parity work.
- Host tests run one at a time: never start a test binary several times in parallel, or several copies of the suite, not even to hunt a flake (repeat it one run after another, a few times at most).
- `platforms: this` covers this computer's platform. `platforms: all` 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 one piece of evidence it fails without this change (the same spec failing in the latest `desktop-e2e` run on `dev`, or a single rerun); otherwise retain the uncertainty as a failure. Never rerun more than once, and never disturb another worktree to prove a baseline. A spec that skips itself (`test.skip` with a reason, such as one that needs macOS Accessibility) is `not_run` with that reason: never rerun it or argue about it.

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. Passing on the worktree is enough, even when `dev` has moved on: a rebase needs only its conflicts resolved and what they touched still building.

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, if the change touched `cloud/`, deploy it to dev right away from the worktree, now the clean tree at `origin/dev` (never the shared main checkout): only when `git rev-parse HEAD` equals `git rev-parse origin/dev` and `git status --porcelain -- cloud` prints nothing, else stop and report; new migrations, bindings and secrets first, then `npm run deploy:dev` in `cloud/` ([releasing cloud changes](../../../docs/guides/environments-and-deployment.md#releasing-cloud-changes)). Then stop the task-owned app, Vite, sandbox host and local cloud (`node tools/stop-port.mjs --sandbox`), 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.

Files in this skill

  • SKILL.md9.6 KB
  • agents/openai.yaml205 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.