Document-as-System: Automatically maintains BUILD_SCRIPT.md as you code. Optional Google Docs sync with instant same-session injection.
Document-as-System: Automatically maintains BUILD_SCRIPT.md and BUILD_SCRIPT_FULL.md as you code with Claude Code. Optionally syncs to Google Docs for mobile editing with instant same-session injection.
BUILD_SCRIPT.md (current state paragraph) and BUILD_SCRIPT_FULL.md (full prompt history)# Install from GitHub
claude plugin install stefanocasafranca/claude-build-script-plugin
# Clone to Claude plugins directory
git clone https://github.com/stefanocasafranca/claude-build-script-plugin \
~/.claude/plugins/local/build_script
In any Claude Code session, run:
/build_script
This initializes the Document-as-System in your current project:
CLAUDE.md with spec-maintenance rules.claude-plugin/
plugin.json # Plugin metadata (name, version, description)
hooks/
hooks.json # Hook definitions (UserPromptSubmit, PostToolUse, Stop)
user-prompt-handler.py # Injects spec-maintenance instructions + Google Doc queue
post-tool-handler.sh # Auto-commits BUILD_SCRIPT.md changes to git
stop-hook-handler.py # Blocks Claude stop if queue has pending remote changes
skills/
build_script/
SKILL.md # /build_script skill definition
tools/
sync-gdoc.js # Google Docs bidirectional sync daemon
start-all.sh # Launcher: sync daemon + osascript auto-trigger
paragraph-diff.js # Diff utility for detecting Google Doc changes
security.js # HMAC signing utilities for queue files
Every user prompt gets the spec-maintenance instructions invisibly appended via the UserPromptSubmit hook. Claude updates BUILD_SCRIPT.md (a single continuous paragraph of current requirements) and BUILD_SCRIPT_FULL.md (full history) silently on every code-related response.
The sync-gdoc.js daemon polls a Google Doc every second. After 10 seconds of no editing activity, it diffs the current doc against the last known state, generates a structured change summary, signs it with HMAC-SHA256, writes it to .build_script_queue.json, then sends an Enter keystroke to the active Claude Code terminal. The UserPromptSubmit hook intercepts this empty keystroke, finds the signed queue, and injects the changes as the full prompt.
~/.config/build_script/hmac_secret)0o600 permissionsgh CLI (optional, for GitHub auto-push)9.0.0 — Visual daemon feedback, GitHub repo auto-push integration, fully autonomous mode as default.
MIT
Modifies files
Hook triggers on file write and edit operations
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub stefanocasafranca/build-scriptCommands for generating documentation and managing changelogs
llmdoc Claude Code plugin with init, commit-watermark update detection, update modes, temporary investigation cache, and use
CLAUDE.md lifecycle toolkit: initialise, enhance, sync, and modularise CLAUDE.md files with a 150-line cap, automatic chaining, and Karpathy behavioural guardrails.
Automatically maintains CLAUDE.md files as codebases evolve using hooks, agents, and skills
Automatically update project documentation based on code changes
Commands for syncing CLAUDE.md, permissions allowlist, and refreshing context. Hooks for marketplace-to-plugin sync.