agentleFS
DKutzen22DKutzen22/synapse/skills/promote-memory/SKILL.md

promote-memory

Skill1 starsChanged 8 days agoMITView on GitHub

Periodic hygiene workflow for reviewing repo-local memory across active projects and promoting generalizable empirical lessons into central memory or rules. Trigger with /promote-memory or ask to harvest/promote project memory.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. pedrohcgs/claude-code-my-workflow★ 1.7ksame name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository8 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When committing and pushing promoted memory entries, target the user's own fork origin rather than upstream dkutzen22/synapse:

    line 35

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

/promote-memory

Hygiene workflow for harvesting empirical tool quirks and architectural patterns from linked repositories into the user's central Synapse knowledge base and fork origin.

Execution Steps

1. Harvest Local Project Memory

Scan registered project repositories for local decision and quirk files:

REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)
cat "$REPO_ROOT/.synapse/memory/project-quirks.md" 2>/dev/null || cat "$REPO_ROOT/.agents/memory/project-quirks.md" 2>/dev/null || true
cat "$REPO_ROOT/.synapse/memory/project-decisions.md" 2>/dev/null || cat "$REPO_ROOT/.agents/memory/project-decisions.md" 2>/dev/null || true

2. Evaluate Promotion Criteria (The 2-Project Rule)

Evaluate candidate entries against generalizability criteria:

  • Project-Specific (Leave in Target): Local dataset quirks, single-use server URLs, or repository-specific workarounds stay in <target>/.synapse/memory/ (or <target>/.agents/memory/).
  • Generalizable (Promote to Central Memory): Tool bugs appearing across ≥2 repositories or representing universal failure modes.
  • Rule Candidates (Promote to Rules): Invariants that are deterministically enforceable via linters or AST checks (must keep target rule ≤45 lines).

3. Integrate into Central Memory

  • Append tool bugs to memory/tool-quirks.md under the appropriate category (Quirk, Failure Mode, Workaround).
  • Record cross-cutting architectural choices in memory/architecture-decisions.md using the canonical ADR format (ADR-NNN, Status, Context, Decision, Consequences).
  • Deduplicate existing entries before writing.

4. Target Fork Origin Remote

When committing and pushing promoted memory entries, target the user's own fork origin rather than upstream dkutzen22/synapse:

CENTRAL_DIR=$(git rev-parse --show-toplevel 2>/dev/null || pwd)
if [ -L ".agents/skills" ]; then
    CENTRAL_DIR=$(cd "$(readlink .agents/skills)/.." && pwd -P)
fi
FORK_ORIGIN=$(git -C "$CENTRAL_DIR" remote get-url origin 2>/dev/null || echo "origin")
echo "==> Promoting memory to user fork remote: $FORK_ORIGIN"
git -C "$CENTRAL_DIR" add memory/
git -C "$CENTRAL_DIR" commit -m "chore(memory): promote empirical quirks and ADRs from active projects"
git -C "$CENTRAL_DIR" push origin HEAD

5. Prune Local Project Memory

Once promoted centrally, condense or archive the entry in the target project's .agents/memory/ file with a reference to the central memory document.

6. Verify Repository Health

python3 scripts/check-links.py --root .
sh .githooks/pre-commit --all

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.