Agent Skill
2/7/2026

remember

This skill should be used when the user asks to "remember this", "update rules", "add to documentation", "consolidate learnings", "#remember", or when workflow improvements are discovered. Processes pending learnings from session handoffs and updates CLAUDE.md, skill references, and documentation with rules and patterns.

D
ddaanet
0GitHub Stars
1Views
npx skills add ddaanet/agent-core

SKILL.md

Nameremember
DescriptionThis skill should be used when the user asks to "remember this", "update rules", "add to documentation", "consolidate learnings", "#remember", or when workflow improvements are discovered. Processes pending learnings from session handoffs and updates CLAUDE.md, skill references, and documentation with rules and patterns.

agent-core

Workflow infrastructure for Claude Code agents. Without structure, agent sessions drift: incomplete implementations, skipped reviews, scope creep, lost context between sessions. agent-core imposes a pipeline — design, planning, TDD, orchestration, review, handoff — and a memory system that persists decisions across sessions.

18 skills, 14 specialized sub-agents, 23 instruction fragments, 4 hooks, and scripts for runbook preparation, session recovery, and batch operations.

Currently installed as a git submodule; converting to a Claude Code plugin (edify-plugin).

Requires just for task running. Scripts in bin/ use Python 3.

Installation

git submodule add <repo-url> agent-core
cd agent-core && just sync-to-parent

just sync-to-parent creates symlinks in the parent project's .claude/ directory so Claude Code discovers skills, agents, and hooks. It also configures hooks in .claude/settings.json. Changes to agent-core are reflected immediately without re-syncing.

Set up your CLAUDE.md to reference fragments — use templates/CLAUDE.template.md as a starting point, or add @ references to an existing file:

@agent-core/fragments/communication.md
@agent-core/fragments/execution-routing.md

These are loaded into every conversation as ambient context.

Structured Workflow

The core pipeline:

/design → /runbook → [runbook-corrector] → /orchestrate → [corrector] → /handoff

/design triages complexity. Simple tasks execute directly. Moderate tasks skip to planning. Complex tasks get Opus architectural design with outline iteration and design review.

/runbook produces step-by-step execution plans with per-phase typing — TDD cycles or general steps, mixed within a single runbook. runbook-corrector checks TDD discipline, step quality, and LLM failure modes before execution.

/orchestrate dispatches each step to a sub-agent in isolated context. Executing agents receive only their step file plus the design — no access to other steps, so scope is enforced structurally rather than by prose instructions. Review follows every production artifact.

/handoff captures completed work, pending tasks, and blockers for the next session. /commit handles structured commit messages with gitmoji.

The pipeline is not mandatory. Any skill works independently. But the full sequence prevents the failure mode where a task succeeds in one session and leaves wreckage for the next.

Session Modes

Agents start in one of five modes, triggered by shortcuts:

ShortcutModeBehavior
sStatusList pending tasks with metadata, wait
xExecuteResume in-progress or start first pending
xcExecute+CommitExecute, then handoff and commit
rResumeStrict: resume only, error if nothing in progress
wtWorktreeSet up parallel execution via git worktrees

Memory Management

Claude Code sessions are stateless. The memory system persists project knowledge in an agents/ directory in the consuming project:

  • session.md — pending tasks, in-progress work, blockers. The handoff document. Agents read it at startup, update it at /handoff
  • learnings.md — institutional knowledge from mistakes and discoveries. Append-only, consolidated via /codify when approaching the 80-line limit
  • memory-index.md — keyword catalog pointing to detailed documentation. Agents scan the index to decide what to load on demand
  • decisions/ — permanent architectural and implementation decisions, one heading per topic. Where learnings graduate to
  • jobs.md — plan lifecycle tracking (requirementsdesignedplannedcomplete)

Validators (bin/validate-*.py) enforce cross-reference integrity, format conventions, and key uniqueness across these files.

Skills

Skills are slash-command procedures that inject instructions into the current conversation when invoked. Agents (next section) are separate processes with isolated context, spawned via the Task tool. Each skill lives in skills/<name>/SKILL.md.

Workflow pipeline:

SkillPurpose
/designEntry point — triages complexity, routes to appropriate workflow
/runbookCreates execution plans with per-phase TDD or general typing
/review-planReviews runbook quality, TDD discipline, LLM failure modes
/orchestrateDispatches runbook steps to sub-agents
/reviewReviews production artifacts for quality

Session management:

SkillPurpose
/handoffUpdates session.md with completed work and pending tasks
/commitStructured commit messages with gitmoji
/nextShows pending work when no context is loaded
/shelveArchives session context to task list, resets for new work
/codifyConsolidates learnings into permanent documentation

Specialized:

SkillPurpose
/reflectRoot cause analysis of agent behavior deviations
/opus-design-questionDelegates architectural decisions to Opus
/worktreeGit worktree lifecycle for parallel task execution
/release-prepPre-release validation and documentation updates
/token-efficient-bashset -xeuo pipefail pattern for 40-60% token reduction
/gitmojiSemantic emoji matching for commit messages
/handoff-haikuMechanical handoff for Haiku orchestrators
/plugin-dev-validationDomain validation criteria for plugin components

Agents

Sub-agents are invoked via the Task tool for isolated work. Each is defined in agents/<name>.md with a system prompt and tool access list.

Execution:

AgentPurpose
artisanGeneral task execution (reports to files, terse returns)
test-driverTDD cycle execution with RED/GREEN/REFACTOR phases
refactorEscalated refactoring with sonnet-level evaluation

Review:

AgentPurpose
correctorReviews changes, applies all fixes, returns report
design-correctorOpus architectural review for design documents
runbook-correctorRunbook quality and TDD discipline review
outline-correctorDesign outline validation before user discussion
runbook-outline-correctorRunbook outline validation before expansion
tdd-auditorPost-execution TDD quality analysis

Utilities:

AgentPurpose
scoutCodebase exploration with results persisted to files
hooks-testerTests all configured hooks after modifications

Fragments

Instruction fragments are reusable markdown files loaded into every conversation via @ references in CLAUDE.md. They define behavioral rules, operational patterns, and project conventions.

Fragments are ambient context — agents don't need to explicitly load them.

Behavioral: communication.md, execute-rule.md, error-handling.md, no-estimates.md, code-removal.md, token-economy.md, design-decisions.md, commit-skill-usage.md

Operational: execution-routing.md, delegation.md, tool-batching.md, review-requirement.md, sandbox-exemptions.md, bash-strict-mode.md, tmp-directory.md, project-tooling.md, claude-config-layout.md

Workflow: workflows-terminology.md, continuation-passing.md, commit-delegation.md, error-classification.md, prerequisite-validation.md

Hooks

Hook scripts intercept tool calls and prompt submissions:

HookEventPurpose
pretooluse-block-tmp.shPreToolUse (Write|Edit)Blocks writes to /tmp/
submodule-safety.pyPreToolUse + PostToolUse (Bash)Enforces cwd at project root
userpromptsubmit-shortcuts.pyUserPromptSubmitExpands shortcut vocabulary (x, s, r, etc.)
pretooluse-symlink-redirect.shPreToolUse (Edit)Resolves symlink targets for edits

Scripts

Utility scripts in bin/:

ScriptPurpose
prepare-runbook.pyAssembles runbook from phase files, injects metadata
assemble-runbook.pyConcatenates step files into single runbook
batch-edit.pyApplies marker-format batch edits to files
focus-session.pyCreates focused session.md for specific task
task-context.shRecovers session context from git history
add-learning.pyAppends structured learning entries
learning-ages.pyReports learning entry ages for consolidation

Validators (also in bin/):

ScriptPurpose
validate-memory-index.pyValidates memory index format and cross-references
validate-decisions.pyValidates decision file format and key uniqueness
validate-jobs.pyValidates jobs.md format and status values
validate-learnings.pyValidates learnings.md format and line limits
validate-tasks.pyValidates session.md task format and metadata

Project Templates

templates/ provides scaffolding for new projects:

  • CLAUDE.template.md — starter CLAUDE.md with fragment references
  • dotenvrc — direnv configuration for Python projects

configs/ provides shared tool configurations:

  • ruff-base.toml, mypy-base.toml, docformatter-base.toml — linter baselines
  • justfile-base.just — common justfile recipes
  • claude-env.sh — environment setup for Claude Code sessions

Development

just help           # available recipes
just sync-to-parent # sync skills/agents/hooks to parent .claude/
just precommit      # validation (stub — no build requirements)

Adding a Skill

Create skills/<name>/SKILL.md with the procedure. Run just sync-to-parent in the parent project to create the symlink. Restart Claude Code.

Adding an Agent

Create agents/<name>.md with frontmatter (model, tools, description) and system prompt. Run just sync-to-parent. Restart Claude Code.

Adding a Fragment

Create fragments/<name>.md. Add an @agent-core/fragments/<name>.md reference in the parent project's CLAUDE.md. No restart needed — fragments load on next conversation.

License

MIT

Skills Info
Original Name:rememberAuthor:ddaanet