/croftweaver:website-permissionsfrom Croftweaver
Installs a curated allowlist into a new-website repo to eliminate permission prompts for routine build commands (npm, astro, playwright, git reads) while blocking destructive actions like force pushes and deletes. Safely extends the allowlist from approved commands.
Ships in Croftweaver. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A build is a tight loop of npm/astro/playwright/git calls. Approving each one
by hand is friction with little safety benefit for the exact commands the skills run
every day. This skill
gets the repo to "quiet for the safe stuff, blocked for the dangerous stuff", and
keeps it that way as the project grows.
The new-website kit ships a curated .claude/settings.json. Copy it into the repo
(this is also scaffold step 3.2 — do it here if it was skipped). This skill carries its own
copy of the two files, in its templates/claude/ folder, so the step works from the copy
of the skill inside a site too. In the commands below, the name in braces stands for the
folder this SKILL.md is in: Claude Code fills it in; with another assistant, put that
folder's path in its place.
: "${CLAUDE_SKILL_DIR:=}"
mkdir -p .claude/hooks
cp "${CLAUDE_SKILL_DIR}/templates/claude/settings.json" .claude/settings.json
cp "${CLAUDE_SKILL_DIR}/templates/claude/hooks/git-stand.mjs" .claude/hooks/
The settings also register a sync hook (.claude/hooks/git-stand.mjs, AGENTS.md §1):
copy the script with them, or every session start reports a missing file. A repo whose
.claude/settings.json already has its own rules: merge the template's hooks block in
instead of overwriting the file.
When merging, also delete the broad rules older sites carry, which this list dropped in
2026-11. Delete these from the site's allow if they are there: Bash(node:*),
Bash(npm exec:*), Bash(rg:*), Bash(find:*), Bash(tree:*), Bash(mv:*),
Bash(open:*), the image tools (cwebp, dwebp, avifenc, magick, convert, oxipng,
jpegoptim, svgo, exiftool, each :*), and git commit, branch, checkout,
switch, init, merge, restore, stash, remote, fetch, pull and push, each
Bash(git <verb>:*). Then add the template's exact git rules, Bash(node --version) and its three new deny
rules.
.claude/settings.json is per-project and committed, so it travels with the repo
— the handoff party inherits the same quiet loop. Restart Claude Code (or reload the
project) after editing so the new rules take effect.
Pre-approved (allow) — the build loop and read-only inspection:
npm install/ci/run/test, astro, playwright, node --version, git's read verbs and
add (status, diff, log, show, rev-parse, add), the exact git commands
the skills give (git init, git checkout main, git checkout -b production,
git checkout -- .gitignore, git switch main, git switch -, git fetch,
git fetch origin, git pull, git pull --ff-only, git pull --no-rebase, git push,
git push -u origin main, git push -u origin production,
git push --dry-run origin HEAD:main), gh read verbs (auth status, repo view,
pr view/list) plus one write, gh repo create, wrangler pages dev / whoami, file
inspection (ls/cat/head/tail/wc/grep, plus mkdir/cp/touch/echo), and
bash scripts/check_external_links.sh (the outgoing-link sweep). Everything else asks:
git commit, a new working branch and its first push (only production is made without asking,
and only main and production get their first push without asking), other node commands, and the
image tools among them.
Blocked (deny) — irreversible or destructive. Claude Code refuses these outright,
it does not ask; the owner runs one by hand in a terminal if they really mean it:
rm -rf, the usual force pushes (--force, --force-with-lease, -f or a +branch,
wherever it stands in the command), git reset --hard, gh repo delete,
wrangler pages delete, wrangler delete, any git command with a word starting
--output (git log/diff/show writing a file), and git add reading its paths from a file
(--pathspec-from-file).
Do not move these to allow. A rule only matches text, so these catch the usual
spellings; a push with options the list does not name, a bundled force flag
(git push -uf) among them, asks rather than runs. Where website-team-setup could set GitHub's branch rules (§5-A: a public repo, or
a private one on a paid plan), its rule against force pushes (non_fast_forward) makes
GitHub refuse a force push to main whatever the command looks like (GitHub's
Block force pushes
rule; not tested by this kit). A free private repo gets only the local pre-push guard (§5-B), which
--no-verify skips.
When you keep approving the same command, add it — but narrowly:
Bash(git remote -v), not
Bash(git remote:*), not Bash(*) and never a bare Bash. A :* rule allows
whatever follows the command, options that write files or run programs included. A
command whose words change each time, such as the first push of a new branch, cannot be
approved ahead this way: approve it when it comes up./fewer-permission-prompts reads your recent
transcripts and proposes a prioritized allowlist from what you actually approved —
run it, then keep only the exact rules that fit the rules above. Use /update-config (or
hand-edit .claude/settings.json) to apply changes.Bash(curl:*) or other broad network/exec wildcards to the project
allowlist. The link sweep already runs curl inside its allowed script, so no
separate curl grant is needed..claude/settings.json (it's committed)..claude/settings.json — project, committed, travels with the repo (use this)..claude/settings.local.json — project, gitignored, for personal-only rules.~/.claude/settings.json — your global default across every project.Project rules layer on top of global. Put repo-specific build grants in the project
file so the handoff party gets them; keep machine-specific paths in the .local file.
This skill manages the permission allowlist, not what the commands do. For automated
behaviours (run X after Y) you need hooks via /update-config, not an allowlist entry.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
40 skills in this plugin
/ai-seoWhen the user wants to optimize content for AI search engines, get cited by LLMs, or appear in AI-generated answers. Also use when the user mentions 'AI SEO,' 'AEO,' 'GEO,' 'LLMO,' 'answer engine optimization,' 'generative engine optimization,' 'LLM optimization,' 'AI Overviews,' 'optimize for ChatGPT,' 'optimize for Perplexity,' 'AI citations,' 'AI visibility,' 'zero-click search,' 'how do I show up in AI answers,' 'LLM mentions,' or 'optimize for Claude/Gemini.' Use this whenever someone wants their content to be cited or surfaced by AI assistants and AI search engines. For traditional technical and on-page SEO audits, see seo-audit. For structured data implementation, see schema-markup./astro-i18n-setupTurn a new-website scaffold into a turnkey multi-language site: Astro i18n routing (clean default locale + prefixed others), self-referencing hreflang + x-default in the Base layout, i18n sitemap alternates, a language switcher, and the test-harness changes that keep the green-from-commit-1 gate honest across locales. Run at scaffold time when new-website Q4 = "two+ languages at launch", OR later to add a second language to a single-locale site whose default stays unprefixed (phased rollout). Trigger phrases: "multi-language site", "add i18n", "DE+EN site", "internationalization", "hreflang setup", "two languages at launch".
/business-listings-setupPost-launch: claim Google Business Profile, Bing Places, and category directories, then verify the `sameAs` profiles already in schema actually resolve. The action skill for E-E-A-T's Authoritativeness component (owned by `website-content-guide`): other pages linking to or citing you are one signal search and AI answer engines read as authority. Human-in-the-loop, same shape as `search-console-setup` — the agent drafts every value, the owner clicks. Trigger phrases: "claim my Google Business Profile", "Google Maps listing", "Bing Places", "business listings", "improve E-E-A-T", "authoritativeness is thin", "sameAs profiles".
/copywritingWhen the user wants to write, rewrite, or improve marketing copy for any page — including homepage, landing pages, pricing pages, feature pages, about pages, or product pages. Also use when the user says "write copy for," "improve this copy," "rewrite this page," "marketing copy," "headline help," "CTA copy," "value proposition," "tagline," "subheadline," "hero section copy," "above the fold," "this copy is weak," "make this more compelling," or "help me describe my product." Use this whenever someone is working on website text that needs to persuade or convert./customer-researchWhen the user wants to conduct, analyze, or synthesize customer research. Use when the user mentions "customer research," "ICP research," "talk to customers," "analyze transcripts," "customer interviews," "survey analysis," "support ticket analysis," "voice of customer," "VOC," "build personas," "customer personas," "jobs to be done," "JTBD," "what do customers say," "what are customers struggling with," "Reddit mining," "G2 reviews," "review mining," "digital watering holes," "community research," "forum research," "competitor reviews," "customer sentiment," or "find out why customers churn/convert/buy." Use for both analyzing existing research assets AND gathering new research from online sources. For writing copy informed by research, see copywriting./double-knuthGeneric two-pass "Double-Knuth" review for ANY repo or file set: Pass 1 = correctness/bugs on the change (delegates to /code-review when a git diff exists, agent-based otherwise), Pass 2 = completeness + cross-file/doc consistency — the defect class a diff reviewer structurally cannot see (stale counts/enumerations, docs contradicting changed behavior, dead paths, orphaned files, contract drift). Read-only: returns a ranked BUG/RISK/NIT list with file:line + concrete fixes. Specialized versions take precedence: websites → website-review; this skill covers everything else (skill suites, scripts, tools, configs). Trigger phrases: "double knuth this", "double knuth the code", "double knuth the repo", "two-pass review", "consistency review", "did the docs drift", "review the whole repo, not just the diff".
npx claudepluginhub karero/croftweaver --plugin croftweaverOther plugins' skills for the same job