Agent skill

Environment Memory

by ccplugins in ccplugins/awesome-claude-code-plugins

Use before retrying any command, tool, or approach that failed once, and immediately after discovering any OS/shell/tool-specific quirk — checks and updates a stable cross-project quirks file so…

Apache-2.0Auto-check passed

Install Environment Memory

skills CLI
$ npx skills add ccplugins/awesome-claude-code-plugins --skill environment-memory -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ccplugins/awesome-claude-code-plugins environment-memory --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ccplugins/awesome-claude-code-plugins.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/craftsman/skills/environment-memory .claude/skills/environment-memory && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
environment-memory
GitHub stars
967
Token cost
~823 tokens
SKILL.md length
435 words
Files
1
Skills in repo
68
Repo updated
First seen
Licence
Apache-2.0

At a glance

Use before retrying any command, tool, or approach that failed once, and immediately after discovering any OS/shell/tool-specific quirk — checks and updates a stable cross-project quirks file so…

  • Works in 2 steps: Check… → If a matching entry exists, apply its…
  • SKILL.md covers Overview, The file, Before retrying a failed… and After discovering a new quirk, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Environment Memory is an agent skill from ccplugins/awesome-claude-code-plugins. Use before retrying any command, tool, or approach that failed once, and immediately after discovering any OS/shell/tool-specific quirk — checks and updates a stable cross-project quirks file so failed approaches are never silently repeated.

Its SKILL.md is about 820 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with Bash. The repository describes itself as: Awesome Claude Code plugins — a curated list of slash commands, subagents, MCP servers, and hooks for Claude Code. The licence is Apache-2.0.

Example prompts

  • “/environment-memory”

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. Check ~/.claude/craftsman-memory/environment-quirks.md for a matching symptom before trying
  2. If a matching entry exists, apply its fix directly — don't re-verify from scratch unless the

What it can do on your machine

Read from SKILL.md and the folder at commit 5bd4f16. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Environment Memory loads about 823 tokens when it runs. Until then it costs about 65 tokens; SKILL.md has 435 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~65
When it runs · the whole SKILL.md, loaded when a task matches
~823

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ccplugins/awesome-claude-code-plugins at commit 5bd4f16, republished under its Apache-2.0 licence (© ccplugins). 435 words, ~823 tokens.

Download SKILL.mdSave it as .claude/skills/environment-memory/SKILL.md (or your agent's skills folder).
name
environment-memory
description
Use before retrying any command, tool, or approach that failed once, and immediately after discovering any OS/shell/tool-specific quirk — checks and updates a stable cross-project quirks file so failed approaches are never silently repeated.

Environment Memory

Overview

Trial-and-error against the same broken assumption — "maybe bash works this time" — wastes turns and tokens without new information. Any OS, shell, or tool quirk discovered once should be usable forever after, in every project, not just the one where it was found.

Core principle: a quirk discovered once should never be rediscovered by trial and error.

The file

~/.claude/craftsman-memory/environment-quirks.md — deliberately outside this plugin's own install directory, so a plugin update never wipes it. Deliberately outside any single project's memory folder too, since quirks like "hooks run via CMD.exe not bash on this machine" apply everywhere, not just to the project where they were found.

Format: flat, append-only, one line per entry —

<symptom> → <fix> (discovered: <date>, context: <where>)

No YAML frontmatter, no index, no categorization — this file is meant to be read in full whenever it's relevant, so keep it short and skimmable rather than structured for querying (token-cheap by design).

Before retrying a failed command or approach

  1. Check ~/.claude/craftsman-memory/environment-quirks.md for a matching symptom before trying the same thing a second way, or a different way that might hit the same underlying constraint (e.g. "PowerShell syntax works where bash syntax silently no-ops" applies to any bash-syntax attempt, not just the exact command that first failed).
  2. If a matching entry exists, apply its fix directly — don't re-verify from scratch unless the context has genuinely changed (different machine, different Claude Code version).
Show full SKILL.md (207 more words)Show less

After discovering a new quirk

  1. Confirm it's actually environment/tool-specific (OS, shell, PATH, tool version) and not a one-off bug in the current task — this file is for durable facts about the machine/toolchain, not task-specific notes (those belong in KNOWN_ISSUES.md for the project instead).
  2. Append one line in the format above. Don't ask before appending to this file specifically — unlike creating a new project file, this is pure append-only record-keeping with no file-creation side effect the first time it's used organically; do ask before creating the file itself if it doesn't exist yet, since that's a new file outside the current project.

Notion / Obsidian

  • Obsidian: the whole ~/.claude/craftsman-memory/ folder is a valid Obsidian vault as-is (plain markdown, no export step). Users can Open folder as vault on it to get search, backlinks, and graph view over the quirks log while Claude Code keeps writing the same files. Nothing here needs to change to support that — just keep the plain-markdown format intact.
  • Notion: only mirror an entry to Notion when the user explicitly asks, or when closing out an entry they flagged as important. Never mirror automatically — this file is checked frequently and a network round-trip on every check would defeat the point of keeping it cheap.

© ccplugins, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/craftsman/skills/environment-memory of ccplugins/awesome-claude-code-plugins.

Open the folder on GitHubat commit 5bd4f16

Compare with similar skills

Environment Memory next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Environment Memory compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Environment Memory this skillccplugins/awesome-claude-code-plugins967—~823Automated safety check: PassApache-2.0
Hook Development for Claude Code Pluginsanthropics/claude-plugins-official37k11 repos~4.1kAutomated safety check: NotesApache-2.0
Plugin Settings Patternanthropics/claude-plugins-official37k7 repos~3kAutomated safety check: PassApache-2.0
Mole Bug Patternstw93/Mole69k—~2kAutomated safety check: PassGPL-3.0
Neat-Freak Knowledge CloseoutKKKKhazix/khazix-skills21k—~1.9kAutomated safety check: PassMIT
CCPM Project Managementautomazeio/ccpm8.4k—~1.1kAutomated safety check: PassMIT

Similar skills

  • Hook Development for Claude Code Plugins

    anthropics/claude-plugins-official

    Official

    Explains how to write Claude Code plugin hooks, both prompt-based checks and bash commands, for events such as PreToolUse, Stop and SessionStart.

    37k GitHub starsUsed in 11 repos~4.1k tokens
    Agent WorkflowsAuto-check: notes
  • Plugin Settings Pattern

    anthropics/claude-plugins-official

    Official

    Shows how Claude Code plugins keep per-project settings and state in .claude/plugin-name.local.md files with YAML frontmatter and a markdown body.

    37k GitHub starsUsed in 7 repos~3k tokens
    Agent WorkflowsAuto-check passed
  • A catalog of recurring bug shapes in the Mole Mac cleaner, used to review safety-sensitive diffs for deletion safety, unbounded commands, shell traps and weak tests.

    69k GitHub stars~2k tokensUpdated today
    DevelopmentAuto-check passed
  • Neat-Freak Knowledge Closeout

    KKKKhazix/khazix-skills

    Brings project docs, agent rule files, authorized memory and leftover workspace files back in line with what the code and runtime actually do at the end of a work session.

    21k GitHub stars~1.9k tokensUpdated 6 days ago
    Agent WorkflowsAuto-check passed
  • Runs a spec-driven workflow from PRD to epic to GitHub issues to parallel agents, with status, standup and blocked-work reports from bundled scripts.

    8.4k GitHub stars~1.1k tokensUpdated 6 mo ago
    Product & Project ManagementAuto-check passed
  • Crush Configuration

    charmbracelet/crush

    Explains how to configure the Crush coding agent with crushrc or crush.json, covering providers, models, LSPs, MCP servers, hooks, permissions and config precedence.

    29k GitHub stars~3.7k tokensUpdated today
    Agent WorkflowsAuto-check passed

More from ccplugins/awesome-claude-code-plugins

All 68 skills in this repo
  • AI Meeting

    ccplugins/awesome-claude-code-plugins

    Run structured AI meetings for plans, product ideas, technical designs, business decisions, feature proposals, and strategy choices.

    967 GitHub stars~2.4k tokensUpdated 1 mo ago
    Auto-check: notes
  • Fastapi App

    ccplugins/awesome-claude-code-plugins

    Bootstrap a new FastAPI backend with async SQLAlchemy 2.0, asyncpg, Alembic, Pydantic v2, and no deprecated APIs.

    967 GitHub stars~1.1k tokensUpdated 1 mo ago
    Auto-check: notes
  • Flutter App

    ccplugins/awesome-claude-code-plugins

    Bootstrap a new Flutter mobile app with clean architecture, Riverpod, FVM-pinned SDK, current packages, and no deprecated APIs.

    967 GitHub stars~1.1k tokensUpdated 1 mo ago
    Auto-check: notes
  • Nextjs App

    ccplugins/awesome-claude-code-plugins

    Bootstrap a new Next.js (App Router, TypeScript) web app with current packages and no deprecated APIs.

    967 GitHub stars~1.1k tokensUpdated 1 mo ago
    Auto-check: notes
  • Dev Report

    ccplugins/awesome-claude-code-plugins

    Write up a coding session for a non-technical stakeholder — the context, what was built, and the engineering reasoning behind it — the way a senior engineer briefs a product manager who does not…

    967 GitHub stars~3.1k tokensUpdated 1 mo ago
    Auto-check passed
  • Difesa Attacchi

    ccplugins/awesome-claude-code-plugins

    Aggiunge a un sito/app un agente di difesa che rileva e blocca richieste malevole (SQL injection, XSS, path traversal, brute force, bot) con rate limiting, blocklist IP e modalità lockdown che…

    967 GitHub stars~781 tokensUpdated 1 mo ago
    Auto-check passed

Works with

Questions about Environment Memory

What does Environment Memory do?

Use before retrying any command, tool, or approach that failed once, and immediately after discovering any OS/shell/tool-specific quirk — checks and updates a stable cross-project quirks file so…. Environment Memory is an agent skill from ccplugins/awesome-claude-code-plugins. Use before retrying any command, tool, or approach that failed once, and immediately after discovering any OS/shell/tool-specific quirk — checks and updates a stable cross-project quirks file so failed approaches are never silently repeated.

How do I install Environment Memory in Claude Code?

Run `npx skills add ccplugins/awesome-claude-code-plugins --skill environment-memory -a claude-code`. Or copy the skill folder (plugins/craftsman/skills/environment-memory in ccplugins/awesome-claude-code-plugins) into .claude/skills/environment-memory in your project. Claude Code loads it when a task matches its description.

How do I install Environment Memory in Codex?

Run `npx skills add ccplugins/awesome-claude-code-plugins --skill environment-memory -a codex`. Or copy the skill folder (plugins/craftsman/skills/environment-memory in ccplugins/awesome-claude-code-plugins) into .agents/skills/environment-memory in your project. Codex loads it when a task matches its description.

Can I use Environment Memory in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ccplugins/awesome-claude-code-plugins --skill environment-memory -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/environment-memory, .gemini/skills/environment-memory, .github/skills/environment-memory and .opencode/skills/environment-memory in your project.

What does Environment Memory need to run?

SKILL.md names no scripts, command-line tools or credentials: Environment Memory is instructions for the agent only.

Does Environment Memory access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Environment Memory safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Environment Memory use?

Environment Memory is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Environment Memory use?

About 823 tokens (SKILL.md is roughly 3.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Environment Memory?

Skills that share tags, products or a category with Environment Memory: Hook Development for Claude Code Plugins (anthropics/claude-plugins-official, 37k stars), Plugin Settings Pattern (anthropics/claude-plugins-official, 37k stars), Mole Bug Patterns (tw93/Mole, 69k stars) and Neat-Freak Knowledge Closeout (KKKKhazix/khazix-skills, 21k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Environment Memory?

ccplugins (a GitHub organization) maintains it in ccplugins/awesome-claude-code-plugins, which has 967 GitHub stars. The repository holds 68 skills in this directory. The repository was last updated on August 12, 2026.

Source: ccplugins/awesome-claude-code-plugins on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.