{"id":43325573,"url":"https://github.com/superbasicstudio/claude-anchor","last_synced_at":"2026-02-17T01:01:04.753Z","repository":{"id":335921641,"uuid":"1147509442","full_name":"superbasicstudio/claude-anchor","owner":"superbasicstudio","description":"Persistent memory, enforceable rules, and behavioral consistency for Claude Code. The behavioral brain for AI-assisted development.","archived":false,"fork":false,"pushed_at":"2026-02-01T21:47:05.000Z","size":69,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-02T05:40:38.926Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/superbasicstudio/claude-anchor","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/superbasicstudio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-01T21:16:10.000Z","updated_at":"2026-02-01T21:47:07.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/superbasicstudio/claude-anchor","commit_stats":null,"previous_names":["superbasicstudio/claude-anchor"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/superbasicstudio/claude-anchor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superbasicstudio%2Fclaude-anchor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superbasicstudio%2Fclaude-anchor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superbasicstudio%2Fclaude-anchor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superbasicstudio%2Fclaude-anchor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/superbasicstudio","download_url":"https://codeload.github.com/superbasicstudio/claude-anchor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superbasicstudio%2Fclaude-anchor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29528228,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T00:57:22.232Z","status":"ssl_error","status_checked_at":"2026-02-17T00:54:25.811Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-02-01T23:07:04.775Z","updated_at":"2026-02-17T01:01:04.734Z","avatar_url":"https://github.com/superbasicstudio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eClaude Anchor\u003c/strong\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eClaude Anchor\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cem\u003efor Claude Code command line\u003c/em\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cem\u003eA persistent memory, rules, and behavioral context framework for AI-assisted development with Claude Code.\u003c/em\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/claude-anchor\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/claude-anchor.svg\" alt=\"npm version\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/claude-anchor\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/dm/claude-anchor.svg\" alt=\"npm downloads\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/superbasicstudio/claude-anchor/blob/main/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/l/claude-anchor.svg\" alt=\"license\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n\u003e [!IMPORTANT]\n\u003e ## Open Source Project Notice\n\u003e\n\u003e **This is open source software maintained by ONE individual in their free time.**\n\u003e\n\u003e While the templates are tested and reviewed before releases, you should **ALWAYS** have:\n\u003e - A proper GitHub/Git strategy in place\n\u003e - Regular backups of your work\n\u003e - Version control before running ANY script from the internet\n\u003e\n\u003e **DISCLAIMER**: This software is provided \"as is\" without warranty of any kind. Super Basic Studio and the maintainers of Claude Anchor are not responsible for any issues, data loss, or damages that may occur from using this tool. By using Claude Anchor, you acknowledge that you run it at your own risk.\n\n---\n\nGive Claude persistent memory, enforceable rules, and behavioral consistency across sessions. Claude Anchor is the **behavioral brain** — it tells Claude *how to think and behave* in your project.\n\n## Table of Contents\n\n- [Quick Start](#quick-start)\n- [What It Does](#what-it-does)\n- [Templates](#templates)\n  - [Minimal Setup](#minimal-setup-simple-projects)\n  - [Full Setup](#full-setup-complex-projects)\n- [Session Load Order](#session-load-order)\n- [Template Overview](#template-overview)\n- [Customization Guide](#customization-guide)\n- [Naming Conventions](#naming-conventions)\n- [Companion Project: Claude Conductor](#companion-project-claude-conductor)\n- [Contributing](#contributing)\n- [Privacy \u0026 Security](#privacy--security)\n- [License](#license)\n\n### External Resources\n\n- [npm package](https://www.npmjs.com/package/claude-anchor) — `npx claude-anchor`\n- [Claude Conductor](https://github.com/superbasicstudio/claude-conductor) — Companion codebase documentation framework\n- [Changelog](CHANGELOG.md)\n- [Security Policy](SECURITY.md)\n\n## Quick Start\n\n[Back to top](#table-of-contents)\n\n### Option 1: npx (Recommended)\n\n```bash\n# Copy 3 essential templates into your project\nnpx claude-anchor\n\n# Copy all 10 templates\nnpx claude-anchor --full\n\n# Copy into a specific directory\nnpx claude-anchor ./my-project\n\n# Overwrite existing files\nnpx claude-anchor --force\n```\n\n### Option 2: Manual (git clone)\n\n```bash\n# Clone the templates\ngit clone https://github.com/superbasicstudio/claude-anchor.git\n\n# Copy the templates you need into your project\ncp claude-anchor/templates/_GOLDEN-RULES.md ./your-project/\ncp claude-anchor/templates/_TODOS.md ./your-project/\ncp claude-anchor/templates/_LONG-TERM-MEMORY.md ./your-project/\n```\n\n### Then:\n\n1. Edit each `.md` file, replacing `[PLACEHOLDERS]` with your project-specific content\n2. Customize `_GOLDEN-RULES.md` with your project's constraints\n3. Claude reads these files automatically at the start of each session\n\n## What It Does\n\n[Back to top](#table-of-contents)\n\nClaude Anchor provides a structured template system that gives Claude:\n\n- **Voice \u0026 tone** — Control Claude's personality, attitude, vocabulary, and communication vibe. Loaded first so it colors everything.\n- **Persistent memory** — Long-term knowledge that survives across sessions (user preferences, project conventions, important decisions)\n- **Session continuity** — Short-term context for resuming work after interruptions or reboots\n- **Enforceable rules** — Immutable constraints (\"NEVER do X\") that Claude must follow, read twice per session to prevent context decay\n- **Design preferences** — Visual design rules: lighter hover colors, WCAG accessibility, typography, flat iconography, UX principles\n- **Conversation preferences** — Standardized output formatting, verbosity levels, and communication style\n- **Lessons learned** — A living record of past mistakes and their fixes, so Claude doesn't repeat them\n- **Task tracking** — Priority-based TODOs with blockers and dependencies\n\n### The Problem It Solves\n\nWithout persistent context, Claude:\n- Loses crucial knowledge between sessions\n- Repeats the same mistakes\n- Forgets your preferences and conventions\n- Can't resume interrupted work\n- Has no enforceable behavioral constraints\n- Has no consistent personality or communication style\n- Ignores your design system and accessibility requirements\n\nAnchor fixes all of this with a structured set of markdown templates that Claude reads at session start.\n\n## Templates\n\n[Back to top](#table-of-contents)\n\n### Minimal Setup (Simple Projects)\n\n```\nyour-project/\n├── CLAUDE.md                    # Your existing project docs\n├── _GOLDEN-RULES.md             # Immutable rules\n└── _TODOS.md                    # Active tasks\n```\n\n### Full Setup (Complex Projects)\n\n```\nyour-project/\n├── CLAUDE.md                    # Project context (with load order block)\n├── _VOICE-AND-TONE.md           # Personality, attitude, language style (loaded FIRST)\n├── _GOLDEN-RULES.md             # Immutable rules (read twice per session)\n├── _TODOS.md                    # Active tasks and priorities\n├── _LESSONS-LEARNED.md          # Past mistakes and fixes\n├── _CONVERSATION-PREFERENCES.md # Output formatting and communication style\n├── _DESIGN-PREFERENCES.md       # Visual design, accessibility, UX rules\n├── _LONG-TERM-MEMORY.md         # Persistent memory (NEVER delete)\n├── _SHORT-TERM-MEMORY.md        # Session context (delete when done)\n└── _SYSTEM_ARCHITECTURE.md      # Technical diagrams and system design\n```\n\n## Session Load Order\n\n[Back to top](#table-of-contents)\n\nThe CLAUDE.md template includes a mandatory startup block. When Claude enters a project with Anchor files, it reads them in this exact sequence:\n\n```\n0. _SHORT-TERM-MEMORY.md         \u003c- IF EXISTS: resume interrupted work\n1. _VOICE-AND-TONE.md            \u003c- READ FIRST — personality and language style\n2. _GOLDEN-RULES.md              \u003c- BINDING rules — MUST FOLLOW every session\n3. _TODOS.md                     \u003c- Know what's pending\n4. _LESSONS-LEARNED.md           \u003c- Avoid past mistakes\n5. _LONG-TERM-MEMORY.md          \u003c- Persistent knowledge and preferences\n6. _CONVERSATION-PREFERENCES.md  \u003c- Output formatting\n7. _DESIGN-PREFERENCES.md        \u003c- Visual design and UX rules\n8. _GOLDEN-RULES.md              \u003c- Re-read (reinforce)\n9. CLAUDE.md                     \u003c- Full project context\n10. BEGIN conversation\n```\n\n**Why is VOICE-AND-TONE first?** Claude's personality should be established before it reads anything else. It colors how Claude processes every file after it and how it communicates throughout the session.\n\n**Why read GOLDEN-RULES twice?** In long contexts, content read early can get \"forgotten\" as the context window fills. Re-reading critical rules last keeps them fresh and prevents behavioral drift during the session.\n\n## Template Overview\n\n[Back to top](#table-of-contents)\n\n| Template | Purpose | Lifecycle | Priority |\n|----------|---------|-----------|----------|\n| `_VOICE-AND-TONE.md` | Personality, attitude, vocabulary, response style, commit format | Permanent. Adjust to match your working style. | **FIRST** |\n| `_GOLDEN-RULES.md` | Immutable constraints — things Claude must NEVER/ALWAYS do | Permanent. Updated when new rules are needed. | **BINDING** |\n| `_TODOS.md` | Active tasks with priorities, blockers, and dependencies | Ongoing. Tasks move from pending to completed. | High |\n| `_LESSONS-LEARNED.md` | Documented mistakes with root cause and prevention | Permanent. Add entries immediately when issues are discovered. | High |\n| `_CONVERSATION-PREFERENCES.md` | Output formatting, colors, progress bars, verbosity | Permanent. Adjusted to match your communication style. | Medium |\n| `_DESIGN-PREFERENCES.md` | Hover states, accessibility, typography, iconography, UX rules | Permanent. Adjust to match your design system. | High |\n| `_LONG-TERM-MEMORY.md` | Persistent knowledge: user identity, system config, code style, decisions | **NEVER delete.** Accumulates over months/years. | High |\n| `_SHORT-TERM-MEMORY.md` | Session context: current task, progress, what to resume | **Delete when task is complete.** Prevents stale context. | Conditional |\n| `_SYSTEM_ARCHITECTURE.md` | ASCII diagrams, data flows, component maps, security model | On-demand reference. Updated when architecture changes. | Reference |\n\n### Memory Model\n\n```\n_LONG-TERM-MEMORY.md                   _SHORT-TERM-MEMORY.md\n - NEVER delete                         - DELETE when task complete\n - Accumulates over time                - Temporary session state\n - User preferences, decisions          - Current task progress\n - System configuration                 - Reboot/restart status\n - Always available to Claude           - Prevents stale context\n```\n\n## Customization Guide\n\n[Back to top](#table-of-contents)\n\nAll template files use placeholder syntax:\n\n```\n[PROJECT_NAME]  — Your project name\n[DESCRIPTION]   — Brief description\n[DATE]          — Current date\n[PATH]          — File/folder paths\n[COMMAND]       — CLI commands\n```\n\n### Tips\n\n1. **_VOICE-AND-TONE.md** — Set this up first. It shapes everything Claude says. Pick your formality, humor, and energy levels.\n2. **_GOLDEN-RULES.md** — Be specific. Vague rules get ignored. Include \"why\" for each rule.\n3. **_TODOS.md** — Keep it current. Stale TODOs confuse Claude about priorities.\n4. **_LESSONS-LEARNED.md** — Add entries immediately when you discover gotchas. Future you will thank past you.\n5. **_CONVERSATION-PREFERENCES.md** — Include visual examples of your preferred output format.\n6. **_DESIGN-PREFERENCES.md** — Set your hover, accessibility, and icon rules once. Claude follows them everywhere.\n7. **_LONG-TERM-MEMORY.md** — Start with your identity, system environment, and code style. It grows naturally over time.\n8. **_SHORT-TERM-MEMORY.md** — Create one when you need to pause work. Delete it when you resume and finish.\n9. **_SYSTEM_ARCHITECTURE.md** — ASCII diagrams are universally understood. Use them.\n\n## Naming Conventions\n\n[Back to top](#table-of-contents)\n\n| Pattern | Meaning | Example |\n|---------|---------|---------|\n| `ALLCAPS.md` | Core documentation | `CLAUDE.md`, `TODOS.md` |\n| `_UNDERSCORE.md` | Supporting/reference docs | `_SYSTEM_ARCHITECTURE.md` |\n| `HYPHENATED.md` | Multi-word names | `GOLDEN-RULES.md`, `LESSONS-LEARNED.md` |\n\nThe underscore prefix keeps supporting files visually grouped at the top of directory listings.\n\n## Companion Project: Claude Conductor\n\n[Back to top](#table-of-contents)\n\n**Two repos, two tools, complementary not competitive.**\n\nAnchor is the **behavioral brain** — it manages Claude's rules, memory, conversation preferences, and session continuity. It tells Claude *how to think and behave*.\n\n[Claude Conductor](https://github.com/superbasicstudio/claude-conductor) is the **codebase brain** — it documents your project's architecture, APIs, build systems, errors, and development history. It tells Claude *what your project is*.\n\nTogether they give Claude full context — what the project is AND how to work on it.\n\n| | Conductor | Anchor |\n|---|---|---|\n| **Focus** | Codebase documentation | AI behavior and memory |\n| **Generates** | ARCHITECTURE.md, BUILD.md, API.md, JOURNAL.md | _VOICE-AND-TONE.md, _GOLDEN-RULES.md, _DESIGN-PREFERENCES.md, _LONG-TERM-MEMORY.md, _TODOS.md |\n| **Delivery** | `npx claude-conductor` (automated CLI) | Copy templates into project |\n| **Answers** | \"What is this codebase?\" | \"How should Claude behave?\" |\n\nA project can use one or both. They don't overlap — they stack.\n\n## Contributing\n\n[Back to top](#table-of-contents)\n\nWe welcome contributions! If you have ideas for new templates, improvements to existing ones, or better documentation:\n\n1. Fork the repository\n2. Create a feature branch\n3. Make your changes\n4. Submit a pull request\n\nPlease keep templates framework-agnostic — they should work with any project in any language.\n\n## Privacy \u0026 Security\n\n[Back to top](#table-of-contents)\n\n**Claude Anchor is a collection of markdown templates with a lightweight CLI installer. It:**\n- Templates are pure markdown — no executable code runs in your project\n- The CLI (`npx claude-anchor`) only copies template files — nothing else\n- Makes zero network requests (beyond npm install)\n- Has no telemetry or analytics\n- Runs entirely on your local machine\n- Never collects or transmits any data\n\nThe `_LONG-TERM-MEMORY.md` template includes a warning to NEVER store actual passwords or secrets. Follow this guidance.\n\n## License\n\n[Back to top](#table-of-contents)\n\nBSD 2-Clause (c) Super Basic Studio\n\n---\n\nMade with love by [Super Basic Studio](https://superbasic.studio)\n\n## Keywords\n\nclaude, claude code, claude anchor, ai memory, ai context, persistent memory, rules framework, claude code framework, vibe coding, super basic studio\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperbasicstudio%2Fclaude-anchor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuperbasicstudio%2Fclaude-anchor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperbasicstudio%2Fclaude-anchor/lists"}