agentleFS
Alexander-TyagunovAlexander-Tyagunov/magician/skills/almanac/SKILL.md

almanac

Skill14 starsChanged 2 months agoMITView on GitHub

One-time workspace setup — creates the .workspace/ structure, .gitignore entries and a lean CLAUDE.md, then suggests relevant MCPs and permission rules you can add yourself with /permissions. Writes no Claude Code settings. Run once per project.

  • Reads credentials

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

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

    If ${CLAUDE_PLUGIN_DATA}/workspace-strategy.json exists (written by step 8 of an earlier run on this machine), Read it first and put the …

    line 33
  2. Very specific:

    Use the AskUserQuestion tool with the Workspace Mode configuration in references/setup-questions.md — do not write any text before calling …

    line 35
  3. Very specific:

    If private mode: .workspace/ instead.

    line 51
  4. Distinctive:

    If no CLAUDE.md exists, create a lean one:

    line 93
  5. Distinctive:

    Do not write generic best practices.

    line 99
  6. Very specific:

    Use the AskUserQuestion tool with the Permission suggestions configuration in references/setup-questions.md — do not write any text before …

    line 103
  7. Distinctive:

    If Show suggestions: print a short list in chat, built from the detected stack, and write nothing:

    line 105

≈ “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

/almanac — Workspace Initialization

Set up the magician workspace for this project. Run once per project.

What Gets Created

.workspace/
├── shared/           ← committed to git
│   ├── context.md    current team state and open decisions
│   ├── roadmap.md    feature priorities
│   ├── decisions/    architecture decision records
│   ├── specs/        /conjure design specs
│   └── postmortems/  /autopsy outputs
└── local/            ← always gitignored
    ├── prefs.md      per-machine preferences
    └── session.md    last session state

Almanac never edits Claude Code settings files (.claude/settings*.json or ~/.claude/settings.json) and never changes the permission mode. Permission rules are only suggested in chat (step 6) for the user to add with /permissions.

Process

1. Workspace Mode Decision

If ${CLAUDE_PLUGIN_DATA}/workspace-strategy.json exists (written by step 8 of an earlier run on this machine), Read it first and put the mode it records first in the options, labelled "(last used)".

Use the AskUserQuestion tool with the Workspace Mode configuration in references/setup-questions.md — do not write any text before calling it.

Wait for reply before creating any directories or files. Remember the selected mode (Shared or Private) — it controls steps 3, 8, and 9.

2. Create Directory Structure

mkdir -p .workspace/shared/decisions .workspace/shared/specs .workspace/shared/plans .workspace/shared/research .workspace/shared/postmortems
mkdir -p .workspace/local

3. Configure .gitignore

Append to .gitignore (or create it):

# Magician workspace (local machine only)
.workspace/local/

If private mode: .workspace/ instead.

4. Create Initial Files

.workspace/shared/context.md:

# Project Context

**Stack:** <from inspector>
**Archetype:** <from inspector>
**Started:** <today's date>

## Open Decisions
(none yet)

## Current Focus
(describe what you're working on)

.workspace/shared/roadmap.md:

# Roadmap

## In Progress
(none yet)

## Planned
(none yet)

## Completed
(none yet)

.workspace/local/prefs.md:

# Local Preferences

disableGit: false
# Set disableGit: true to skip worktrees and PR flow

5. Minimal CLAUDE.md

If no CLAUDE.md exists, create a lean one:

# Project Rules

(Add earned rules here — only what Claude consistently gets wrong.)

Do not write generic best practices. CLAUDE.md should only contain rules specific to this project.

6. Permission Suggestions (guidance only)

Use the AskUserQuestion tool with the Permission suggestions configuration in references/setup-questions.md — do not write any text before calling it.

If Show suggestions: print a short list in chat, built from the detected stack, and write nothing:

  • Allow — the project's own test, lint and build commands, each named with its subcommand (for example Bash(npm test *), Bash(npm run lint *), Bash(pytest *), Bash(go test *)). Never suggest a whole CLI (Bash(git *), Bash(npm *)), an interpreter, or a package launcher.
  • Deny — files that should stay off-limits to Claude (for example Read(./.env), Read(./.env.*), Read(./secrets/**), plus any credential files you noticed while inspecting the project).

Then tell the user they can add any of these with /permissions (or by editing their own settings). If Skip: continue.

7. MCP Suggestions

Based on detected archetype, mention MCP servers that could help:

  • web: browser automation MCP for UI testing
  • data: notebook MCP for Jupyter integration
  • devops: cloud provider CLI MCPs

Adding an MCP server changes Claude Code's configuration, so almanac does not install one. If the user wants one, point them to that server's install instructions (a /plugin entry or the claude mcp add … command for them to run).

8. Save Strategy

Record the workspace mode chosen in step 1 in ${CLAUDE_PLUGIN_DATA}/workspace-strategy.json — the magician plugin data folder; step 1 of a later run reads it. No hook reads it. Read the file first if it exists, then write it with exactly one of:

  • Shared mode (only .workspace/local/ is gitignored): {"mode": "shared", "ignored": "false"}
  • Private mode (the whole .workspace/ is gitignored): {"mode": "private", "ignored": "true"}

9. Commit (if shared mode)

git add .workspace/shared/ CLAUDE.md .gitignore
git commit -m "chore: initialize magician workspace"

Obstacles

This is a terminal, user-facing skill — it reports to the human directly, not upward to an orchestrator — so it emits no upward Obstacles block: surface any blocker in prose to the user and stop.

See lore/obstacles.md.

Completion Signal

"Almanac complete. Workspace initialized in <mode> mode. Run /conjure to start designing, or /manifest for the full flow."

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.