fork-sync
Skill3 starsChanged 2 months agoApache-2.0View on GitHub
Selectively integrate source features into this fork (dvaJi/argos) as native, self-contained PRs. The fork diverged from the source tree and cannot merge upstream directly. Use when asked to "sync", "port", "bring in an upstream feature", or to continue an in-progress integration. Produces commits/PRs/code that read as ordinary Argos work — never advertise origin.
- Commits and pushes
In this repository28 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .agents/skills/vercel-composition-patterns/AGENTS.mdAGENTS.md
- .agents/skills/vercel-react-best-practices/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- argos-data-importSkill
- argos-releaseSkill
- argos-sddSkill
- awwwards-animationsSkill
- baseline-uiSkill
- bun-file-ioSkill
- design-taste-frontendSkill
- pi-updateSkill
- react-doctorSkill
- shadcnSkill
- tanstack-formSkill
- tanstack-pacerSkill
- tanstack-querySkill
- tanstack-rangerSkill
- tanstack-routerSkill
- tanstack-storeSkill
- tanstack-tableSkill
- tanstack-virtualSkill
- turborepoSkill
- vercel-composition-patternsSkill
- vercel-react-best-practicesSkill
- vgpuSkill
- viteSkill
- web-design-guidelinesSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 4 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
Artifacts must read as native Argos work: Do NOT mention "upstream", "port", "source repo", "deepchat", or the source PR#/commit SHA in:
- Very specific: line 68
Commit: feat(<scope>): <what> or fix(<scope>): <what> — no origin ref.
- Very specific: line 72
After rebase, confirm git diff --name-only origin/master..HEAD shows only the port files (no .agents/skills/).
- Very specific: line 78
Never commit routeTree.gen.ts (generated).
- Very specific: line 85
SKILL.md: if you discovered a *reusable* rule or step that isn't here, add it.
- Distinctive: line 91
If a feature's value is its UI, open a separate renderer-rebuild task (not this PR).
- Distinctive: line 102
When asked to "sync", "port", or "bring in" a feature:
- Very specific: line 103
Read sync-state.md → report what's pending and suggest the next pick.
- Distinctive: line 105
Run the workflow above.
- Distinctive: line 106
Leave the skill files updated.
≈ “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.
Files
Fork Sync
Context (read first)
- This fork:
dvaJi/argos(origin), integration branch ismaster. Nodev/main. - Source repo:
ThinkInAIXYZ/deepchat(remoteupstream), default branchdev. - Divergence: the fork point is
b67332c. The fork has since been rewritten (renderer migration, ACP SDK migration, dependency modernization, restructured main process). Histories shareb67332cbut agit merge/cherry-pickis not viable — many overlapping files no longer exist in this fork. - Therefore: integrate by selectively re-implementing a source feature in the
fork's current structure, as a standalone PR. Never
git merge upstream.
Golden rule
Artifacts must read as native Argos work. Do NOT mention "upstream", "port", "source repo", "deepchat", or the source PR#/commit SHA in:
- commit messages,
- PR titles or bodies,
- code comments,
- test descriptions.
The source origin is tracked only inside this skill's files (registry, sync-state) for the AI's own reference — never surfaced into the repo.
Files this skill maintains (self-evolving)
ported-files.md— registry mapping each fork file touched to its source ref and role. Read this first to understand fork↔source relationships. The map accumulates, so each iteration the AI knows more about where things live.learnings.md— dated gotchas/patterns discovered during integrations (style deltas, test-setup quirks, circular imports, etc.).sync-state.md— the fork point, the source remote, and which source commits have been integrated (so the next run knows what's done).
After every integration, update all three (see step 9). That is the self-evolution: the skill gets smarter each run.
Workflow
- Pick the next source change from
sync-state.md(statuspending). - Branch:
git checkout master && git pull && git checkout -b feature/<slug>(plain feature branch — notupstream-sync/...; the branch name is internal but keep it neutral). - Study intent:
git show <source-sha> -- src/main src/shared src/preload. Skip source-renderer UI files the fork no longer carries, and process docs. Capture the behavioral intent, not the line diff. - Consult
ported-files.mdto find where the equivalent code lives in the fork now. Add/update mappings as you discover them. - Re-implement in the fork's current code + style (TS, double quotes, semicolons, 2-space indent — match the file). Adapt names/signatures to the fork's API. UI changes are out of scope unless we deliberately rebuild them in the current renderer — note as a follow-up in your work log, not in the PR.
- Port tests where meaningful; adapt to the fork's test setup (see
learnings.mdfor the vitest-4 mock rules and global mocks). - Verify gate (mandatory):
pnpm run typecheckpnpm test— must stay 0 failurespnpm run lintthenpnpm run formatpnpm run buildifsrc/main/preload changed
- Commit + PR, native style:
- Commit:
feat(<scope>): <what>orfix(<scope>): <what>— no origin ref. Body explains the what and why in plain Argos terms. - Rebase onto current master (
git fetch origin master && git rebase origin/master) so skill-bookkeeping commits on master don't surface as spurious diffs in the PR. After rebase, confirmgit diff --name-only origin/master..HEADshows only the port files (no.agents/skills/**). - Push:
git push -u origin feature/<slug>(use--force-with-leaseif you rebased). - PR:
gh pr create --repo dvaJi/argos --base master --head feature/<slug>(--repois required: two remotes confuse gh's default). PR body describes the change and gate results — no origin mention. - Never commit
routeTree.gen.ts(generated);pnpm-lock.yamlis tracked, commit it when deps change.
- Commit:
- Evolve the skill (mandatory, before finishing):
sync-state.md: mark the source commitdone(add the PR#).ported-files.md: add/refresh the file mappings you discovered.learnings.md: append a dated entry for anything surprising (a new gotcha, a fork-vs-source structural difference, a test pattern that wasn't already logged).- SKILL.md: if you discovered a reusable rule or step that isn't here, add it. This file is meant to be amended by the agent over time.
Non-portable categories (skip in step 3)
- source-renderer UI files that no longer exist in this fork. If a feature's value is its UI, open a separate renderer-rebuild task (not this PR).
- Release/version commits — the fork versions independently.
- Process docs under the source's
docs/issues/**,docs/features/**.
When an integration is not feasible
Mark the sync-state.md row blocked with the reason (e.g. "depends on the memory
subsystem, not yet integrated"). Do not force a partial change past the gate.
AI agent usage
When asked to "sync", "port", or "bring in" a feature:
- Read
sync-state.md→ report what's pending and suggest the next pick. - Confirm scope with the user (one feature per PR).
- Run the workflow above.
- Leave the skill files updated.
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
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.

