agentleFS
funky-eyesfunky-eyes/best-copilot/skills/target-memory-bootstrap/SKILL.md

target-memory-bootstrap

Skill12 starsChanged 6 months agoApache-2.0View on GitHub

Create the target repository's local memory skeleton after repo init. Use from repo-init-scan during first substantial plugin use, when `memories/repo` is missing, or when MEDIUM/LARGE work needs persistent recovery state. Do not store active project memory in the plugin package.

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create durable target-local memory routing files.

    line 8
  2. Distinctive:

    Write into the target repository, never into the installed plugin package or plugin cache.

    line 14
  3. Distinctive:

    Create missing files only.

    line 15
  4. Very specific:

    Do not copy this plugin repository's current work, decisions, examples, memories/, or spec/ as active target memory.

    line 16
  5. Distinctive:

    Read existing memory files when present.

    line 53
  6. Very specific:

    Create only absent files using references/templates.md.

    line 54
  7. Distinctive:

    If existing files are present but lack resumable workstream fields, append a compatible recovery section instead of replacing …

    line 55
  8. Distinctive:

    Verify every required path exists.

    line 56
  9. Very specific:

    If invoked because memories/repo/ was missing and required files still do not exist, return BLOCKED target_memory_bootstrap_incomplete with …

    line 65

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

Target Memory Bootstrap

Create durable target-local memory routing files. Generated memory starts empty and project-neutral; later tasks fill it with verified target repository facts and progress.

Load references/templates.md for exact file contents.

Boundary

  • Write into the target repository, never into the installed plugin package or plugin cache.
  • Create missing files only. Do not overwrite existing target memory.
  • Do not copy this plugin repository's current work, decisions, examples, memories/**, or spec/** as active target memory.
  • Memory stores recovery state, verified decisions, compact facts, last verification, and next resume action.
  • Memory does not store long logs, secrets, PII, raw chat transcripts, or unverified guesses.

Files To Create

  • memories/README.md
  • memories/repo/INDEX.md
  • memories/repo/current-workstreams.md
  • memories/repo/project-state.md
  • memories/repo/workflow-rules.md
  • memories/repo/decisions.md
  • memories/repo/logs/README.md
  • memories/repo/archive/deprecated-decisions.md

State Recovery Requirements

current-workstreams.md must be able to resume work without chat history. It must include fields for:

  • topic
  • status
  • linked_spec
  • linked_memory
  • current_focus
  • completed_tasks
  • blocked_tasks
  • next_resume_action
  • last_verified
  • last_state_sync
  • owner_lane
  • residual_risk

INDEX.md must route by load_tier, tags, use_for, linked_spec, last_updated, and a one-line summary.

Procedure

  1. Determine the target repository root from the active init flow or PM packet.
  2. Read existing memory files when present.
  3. Create only absent files using references/templates.md.
  4. If existing files are present but lack resumable workstream fields, append a compatible recovery section instead of replacing project-specific content.
  5. Verify every required path exists.
  6. Return created files, preserved files, repaired files, and missing paths.

Verification

  • Confirm all missing files were created in the target repository.
  • Confirm existing target memory files were preserved.
  • Confirm placeholders are neutral (unknown or None yet) and do not describe the plugin repository as the target project.
  • Confirm current-workstreams.md has the state recovery fields above.
  • If invoked because memories/repo/** was missing and required files still do not exist, return BLOCKED target_memory_bootstrap_incomplete with the missing paths. Do not let the caller continue the substantive task as if initialization succeeded.

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.