promote

promote is a skill for Claude Code from kopp0510/claude-dd. It costs 31 tokens per session (2,662 once invoked), scanned B, original, MIT.

A workflow for moving a proven note from an agent's automatic memory into CLAUDE.md or a scoped rules file. These files contain instructions that guide future work in a project.

In plain words
What is it for?
Use it to promote a specific coding or project-working pattern, either for the whole project or only for matching file paths.
Why use it?
It turns a useful repeated learning into a lasting project instruction instead of leaving it only in background memory.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Part of the self-improving-agent plugin — 6 skills, 2 agents shipped together

Good fit Use it to promote a specific coding or project-working pattern, either for the whole project or only for matching file paths.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kopp0510/claude-dd/promote
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add kopp0510/claude-dd --skill promote
Clone the repo
git clone --depth 1 https://github.com/kopp0510/claude-dd

Made for: Claude Code.

Or install self-improving-agent, the plugin that ships this one along with the rest of its 6 skills, 2 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for promote

README.md
[![agentmods](https://agentmods.dev/badge/skills/kopp0510/claude-dd/promote/github.svg)](https://agentmods.dev/skills/kopp0510/claude-dd/promote)
Your own site
<a href="https://agentmods.dev/skills/kopp0510/claude-dd/promote"><img src="https://agentmods.dev/badge/skills/kopp0510/claude-dd/promote/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for promote

Your own site · 80×15
<a href="https://agentmods.dev/skills/kopp0510/claude-dd/promote"><img src="https://agentmods.dev/badge/skills/kopp0510/claude-dd/promote.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,662 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00031 $0.02662
Opus 5.5 $0.00012 $0.01065
Sonnet 5.5 $0.00006 $0.00532
Haiku 4.5 $0.00003 $0.00266

Measured 15d ago against content hash 75db8b7300b4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

promote scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 15d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

[ -d "$MEMORY_DIR" ] || { echo "Memory directory not found: $MEMORY_DIR"; find ~/.claude/projects -maxdepth 1 -name "*$(basename "${ROOT:-$PWD}" | sed 's/[^a-zA-Z0-9]/-/g')"; }
skills/self-improving-agent/skills/promote/SKILL.md · 191 lines

How it starts

The opening of the file, as written. The whole thing — 191 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/self-improving-agent:promote — Graduate Learnings to Rules

Moves a proven pattern from Claude's auto-memory into the project's rule system, where it becomes an enforced instruction rather than a background note.

Usage

/self-improving-agent:promote <pattern description>                    # Auto-detect best target
/self-improving-agent:promote <pattern> --target claude.md             # Promote to CLAUDE.md
/self-improving-agent:promote <pattern> --target rules/testing.md      # Promote to scoped rule
/self-improving-agent:promote <pattern> --target rules/api.md --paths "src/api/**/*.ts"  # Scoped with paths

Workflow

Step 1: Understand the pattern

Parse the user's description. If vague, ask one clarifying question:

  • "What specific behavior should Claude follow?"
  • "Does this apply to all files or specific paths?"

Step 2: Find the pattern in auto-memory

# Search MEMORY.md for related entries. Claude Code replaces EVERY non-alphanumeric
# character in the resolved absolute path with a single "-" (dots, spaces and CJK included).
# The directory is keyed by the git repo root, not the cwd: subdirectories and worktrees
# share the main checkout's directory (tested 2026-11-19). Outside a git repo it is the cwd.
ROOT=$(g=$(git rev-parse --git-common-dir 2>/dev/null) && cd "$g" >/dev/null 2>&1 && pwd -P)
case $ROOT in */.git) ROOT=${ROOT%/.git} ;; ?*) ROOT=$(git rev-parse --show-toplevel 2>/dev/null) ;; esac   # no /.git at the end: a submodule, keyed by its own root
MEMORY_DIR="$HOME/.claude/projects/$(printf '%s' "${ROOT:-$(pwd -P)}" | sed 's/[^a-zA-Z0-9]/-/g')/memory"
# Verify first; a missing directory means "wrong path", not "nothing to promote".
# Under LC_ALL=C sed goes per byte, so when the directory is missing, say so and list candidates
# (find, not a glob: zsh aborts on an unmatched glob). A candidate is a project directory: its memory
# is <candidate>/memory. If one is clearly this project and that directory exists, set MEMORY_DIR to it.
# No candidate, or several and none clearly this project: report that with the candidates and stop.
[ -d "$MEMORY_DIR" ] || { echo "Memory directory not found: $MEMORY_DIR"; find ~/.claude/projects -maxdepth 1 -name "*$(basename "${ROOT:-$PWD}" | sed 's/[^a-zA-Z0-9]/-/g')"; }
# MEMORY.md may only be an index; search the topic files too.
# Search once per keyword, not one phrase: a phrase misses entries worded differently.
# Pick 2-4 distinctive words from the description (tool, file or command names, error text);
# skip common words that would match everything. -F keeps dots and brackets literal.
for k in "<keyword1>" "<keyword2>"; do grep -rniF -- "$k" "$MEMORY_DIR" 2>/dev/null; done

Read the full file on GitHub · 191 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 15d ago Changed · +41 lines scan A → B 75db8b7300b4
  2. 2mo ago Changed · +4 lines de3b7b78b2e6
  3. 3mo ago First seen · 146 lines · 31 tokens per session scan A 237ac6ba1fcc

Subscribe to this mod's changes

promote is a skill published in the GitHub repository kopp0510/claude-dd (12 stars, last pushed 4d ago), licensed MIT. It adds 31 tokens to every session and 2,662 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

promote compared with skills from other repositories

promote next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
promotekopp0510/claude-ddSkill124d agoMITB31Claude Code
setup-gbraingarrytan/gstackSkill143ktodayMITA47Claude Code
context-restoregarrytan/gstackSkill143ktodayMITA32Claude Code
learngarrytan/gstackSkill143ktodayMITA18Claude Code
rememberlangchain-ai/deepagentsSkill32ktodayMITA71Claude Code, Codex
md-auditchaitanyagiri/munder-difflinSkill10k6d agoMITA85Claude Code
memory-to-skillzilliztech/memsearchSkill3.0k2d agoMITA82Claude Code, Codex