alexander-tyagunov/magician/almanac
Claude Code and agent skill by alexander-tyagunov/magician
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
One-time workspace setup; .workspace/, .gitignore, CLAUDE.md, optional AGENTS.md and REVIEW.md. Run once per project.
Install
npx vskill@latest install alexander-tyagunov/magician/almanacSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as alexander-tyagunov/magician/almanac.
/almanac — Workspace Initialization
When to use
Once per project, on request: create .workspace/, update .gitignore, write a lean CLAUDE.md, and optionally AGENTS.md, REVIEW.md and project verify/simplify skills, with MCP and permission suggestions only (it writes no settings). Not for a project that already has a .workspace/.
What Gets Created
.workspace/shared/ (committed in Shared mode): context.md, roadmap.md, and decisions/, specs/, plans/, research/, postmortems/. .workspace/local/ (always gitignored): prefs.md and per-machine 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 7) for the user to add with /permissions. Step 5 can add AGENTS.md. Step 6 can add REVIEW.md and two short project skills under .claude/skills/. Step 9 can add north-star.md and a hook template under .workspace/shared/.
Process
1. Workspace Mode Decision
If ${CLAUDE_PLUGIN_DATA}/workspace-strategy.json exists (written by step 10 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, 10 and 11.
2. Create Directory Structure
3. Configure .gitignore
Append to .gitignore (or create it):
If private mode: .workspace/ instead.
4. Create Initial Files
Write .workspace/shared/context.md, .workspace/shared/roadmap.md and .workspace/local/prefs.md from `references/file-templates.md`. Fill the stack and archetype from the detected stack.
5. Minimal CLAUDE.md (and optional AGENTS.md)
Use the AskUserQuestion tool with the Instructions file configuration in `references/setup-questions.md` — do not write any text before calling it. Wait for the reply.
If no CLAUDE.md exists, create a lean one:
Do not write generic best practices. CLAUDE.md should only contain rules specific to this project.
Codex and other agents read AGENTS.md. Claude Code reads it through the @AGENTS.md import, so the commands are in one file. If the reply is `AGENTS.md` + `CLAUDE.md` import:
- If
AGENTS.mddoes not exist, write it from `references/agents-md-template.md` (everything below its marker line, 40 lines or fewer). Fill the commands from the detected stack. IfAGENTS.mdexists, never overwrite it. - Make
@AGENTS.mdthe first line ofCLAUDE.md, above# Project Rules. IfCLAUDE.mdexists and has no@AGENTS.mdline, add only that line at the top and change nothing else.
6. Review setup (REVIEW.md and pre-commit skills)
Use the AskUserQuestion tool with the Review setup configuration in `references/setup-questions.md` — do not write any text before calling it. Wait for the reply. Skip every write below that the reply did not select.
`REVIEW.md`: write it as `references/file-templates.md` says, if the file does not exist. /divine and /scrutinize read it before every review.
`.claude/skills/verify/SKILL.md` and `.claude/skills/simplify/SKILL.md`: since Claude Code 2.1.286, a non-bundled skill named verify or simplify that Claude may invoke runs before each commit. Write each selected delegator exactly as `references/file-templates.md` gives it, if the file does not exist. It must stay model-invocable (no disable-model-invocation), or the pre-commit run does not happen. Then tell the user the two notes in that reference.
7. 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. Act on the reply as that reference says below the configuration. Write nothing.
8. 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
State the tool budget with the suggestions: tool choice degrades above about 30–50 tool definitions (`lore/skill-authoring.md`). Suggest deferred loading (ToolSearch) for a rarely used server.
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).
9. Optional extras
Use the AskUserQuestion tool with the Optional extras configuration in `references/setup-questions.md` — do not write any text before calling it. Wait for the reply. For each selected extra, follow `references/optional-setup.md`: a one-paragraph .workspace/shared/north-star.md, a production-gate hook template at .workspace/shared/hooks/production-gate.sh (never installed), or cost-attribution hints in chat.
10. 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"}
11. Commit (if shared mode)
The first line also stages the step 9 files. Run the other lines only for files steps 5 and 6 wrote. Each is a separate exact command, so a skipped file never breaks the staging.
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."
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/almanac/SKILL.md
Popularity
- Repository stars
- 14
- 7-day trend score
- 14
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/alexander-tyagunov/magician/almanac)