agentleFS
dvaJidvaJi/argos/.agents/skills/fork-sync/SKILL.md

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

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
  1. Very specific:

    Artifacts must read as native Argos work: Do NOT mention "upstream", "port", "source repo", "deepchat", or the source PR#/commit SHA in:

    line 21
  2. Very specific:

    Commit: feat(<scope>): <what> or fix(<scope>): <what> — no origin ref.

    line 68
  3. Very specific:

    After rebase, confirm git diff --name-only origin/master..HEAD shows only the port files (no .agents/skills/).

    line 72
  4. Very specific:

    Never commit routeTree.gen.ts (generated).

    line 78
  5. Very specific:

    SKILL.md: if you discovered a *reusable* rule or step that isn't here, add it.

    line 85
  6. Distinctive:

    If a feature's value is its UI, open a separate renderer-rebuild task (not this PR).

    line 91
  7. Distinctive:

    When asked to "sync", "port", or "bring in" a feature:

    line 102
  8. Very specific:

    Read sync-state.md → report what's pending and suggest the next pick.

    line 103
  9. Distinctive:

    Run the workflow above.

    line 105
  10. Distinctive:

    Leave the skill files updated.

    line 106

≈ “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

Fork Sync

Context (read first)

  • This fork: dvaJi/argos (origin), integration branch is master. No dev/main.
  • Source repo: ThinkInAIXYZ/deepchat (remote upstream), default branch dev.
  • Divergence: the fork point is b67332c. The fork has since been rewritten (renderer migration, ACP SDK migration, dependency modernization, restructured main process). Histories share b67332c but a git merge/cherry-pick is 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

  1. Pick the next source change from sync-state.md (status pending).
  2. Branch: git checkout master && git pull && git checkout -b feature/<slug> (plain feature branch — not upstream-sync/...; the branch name is internal but keep it neutral).
  3. 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.
  4. Consult ported-files.md to find where the equivalent code lives in the fork now. Add/update mappings as you discover them.
  5. 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.
  6. Port tests where meaningful; adapt to the fork's test setup (see learnings.md for the vitest-4 mock rules and global mocks).
  7. Verify gate (mandatory):
    • pnpm run typecheck
    • pnpm test — must stay 0 failures
    • pnpm run lint then pnpm run format
    • pnpm run build if src/main/preload changed
  8. Commit + PR, native style:
    • Commit: feat(<scope>): <what> or fix(<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, confirm git diff --name-only origin/master..HEAD shows only the port files (no .agents/skills/**).
    • Push: git push -u origin feature/<slug> (use --force-with-lease if you rebased).
    • PR: gh pr create --repo dvaJi/argos --base master --head feature/<slug> (--repo is 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.yaml is tracked, commit it when deps change.
  9. Evolve the skill (mandatory, before finishing):
    • sync-state.md: mark the source commit done (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:

  1. Read sync-state.md → report what's pending and suggest the next pick.
  2. Confirm scope with the user (one feature per PR).
  3. Run the workflow above.
  4. Leave the skill files updated.

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.