/anglesite:giscusfrom anglesite
Adds blog comments via Giscus, which stores comments as GitHub Discussions. Useful for adding reader interaction without a third-party service or database.
Ships in anglesite. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Add comment threads to blog posts using Giscus, which stores comments as GitHub Discussions on a repository the owner controls. No third-party tracker, no ads, no monthly fee, no separate moderation dashboard — moderation happens in the GitHub UI.
template/scripts/csp.ts. Only loaded on blog post pages.Read the platform reference: ${CLAUDE_PLUGIN_ROOT}/docs/platforms/giscus.md
Read EXPLAIN_STEPS from .site-config. If true or not set, explain before every tool call that triggers a permission prompt. If false, proceed without pre-announcing.
Read .site-config for COMMENTS_PROVIDER. If it's already giscus, this is an update — tell the owner: "You already have Giscus comments set up. I can change the theme, switch to reactions-only mode, or move the comments to a different repo. What would you like to do?"
The site must have a blog (src/content/posts/). If there's no blog, tell the owner: "Comments are added to blog posts, but I don't see a blog set up yet. Want me to add one first? You can run /anglesite:start and ask for a blog, or I can add it now."
The owner needs a GitHub repository. Read GITHUB_REPO from .site-config. If it's missing, suggest running /anglesite:backup first so the site is already on GitHub — Giscus uses the same repo.
Ask the owner: "Where do you want comments to live? I recommend the same repo your site is already backed up to ({GITHUB_REPO}) — that way everything is in one place. You can also use a separate public repo if you want comments visible without exposing site source."
Two valid choices:
myname/site-comments)Save the choice as GISCUS_REPO in .site-config (format: owner/repo).
If the chosen repo doesn't exist yet, walk the owner through creating it on github.com — public, no description needed, no template.
Tell the owner exactly what to do, in order:
https://github.com/{GISCUS_REPO}/settingshttps://github.com/{GISCUS_REPO}/discussions/categorieshttps://github.com/apps/giscus → click Install → select the comments repo onlyPause here. Ask: "All set? Reply 'yes' once Discussions is on, the Comments category exists, and the Giscus app is installed."
Tell the owner: "I'll fetch the IDs Giscus needs. Open the Giscus configurator at https://giscus.app and fill in:"
{GISCUS_REPO} — the page should show a green checkpathname mapping)Scroll to the Enable giscus section. Inside the generated <script> tag, find:
data-repo-id="..." — copy this value, save as GISCUS_REPO_IDdata-category-id="..." — copy this value, save as GISCUS_CATEGORY_IDAsk the owner to paste both IDs. They look like R_kgDOxxxxxx and DIC_kwDOxxxxxx.
Ask: "How should comments be tied to each post? pathname (default) is most stable — comments stay tied to the URL even if you change the post title. Alternatives are url (full URL — breaks if you change domains), title (post title — breaks if you rename) or og:title (Open Graph title)."
Default to pathname. Save as GISCUS_MAPPING.
Ask: "Which theme matches your site?"
Save as GISCUS_THEME using one of: preferred_color_scheme, light, dark, dark_dimmed, noborder_light, noborder_dark, transparent_dark, light_protanopia, light_tritanopia, dark_protanopia, dark_tritanopia, or a fully-qualified URL.
Ask: "Do you want full comment threads, or just reactions (👍 ❤️ 🎉)? Reactions are lighter-weight and require less moderation."
Save as GISCUS_REACTIONS_ONLY=true|false. If true, the comment box is hidden — visitors can only react.
Append to .site-config:
COMMENTS_PROVIDER=giscus
GISCUS_REPO=owner/repo
GISCUS_REPO_ID=R_kgDOxxxxxx
GISCUS_CATEGORY=Comments
GISCUS_CATEGORY_ID=DIC_kwDOxxxxxx
GISCUS_MAPPING=pathname
GISCUS_THEME=preferred_color_scheme
GISCUS_REACTIONS_ONLY=false
The blog post template (src/pages/blog/[slug].astro) already reads these keys and renders the Comments.astro component when COMMENTS_PROVIDER=giscus is set and the post hasn't opted out via comments: false in its frontmatter. No code changes needed here unless the owner customized the blog layout.
The shipped public/_headers does not allow giscus.app in script-src or frame-src; without this step the site builds fine and then breaks in production. Make sure COMMENTS_PROVIDER=giscus is saved in .site-config (the sync reads it), then run:
npm run ai-csp
It adds the provider's domains to the Content-Security-Policy in public/_headers in place — everything already there is kept — and prints each source it added (+ script-src: …). "up to date" means they were already present. The pre-deploy third-party script scan reads the same key, so no separate allowlist edit is needed.
npm run build
Check that:
dist/blog/<some-post>/index.html contains a <script src="https://giscus.app/client.js" tag (only on blog posts that haven't opted out)dist/index.html does not contain that script (Giscus loads only on blog posts, never the homepage or other pages)public/_headers includes giscus.app in the Content-Security-PolicyIf the build or any check fails, diagnose and fix before presenting to the owner.
Tell the owner: "Comments are live! Each blog post now has a comments section that posts to GitHub Discussions in {GISCUS_REPO}. Visitors sign in with GitHub to comment. You moderate by editing or deleting Discussions on GitHub. Want to preview a post?"
Mention to the owner: "If you want to disable comments on a specific post — like an announcement you don't want discussion on — open it in Keystatic and uncheck Allow Comments. The default is on."
Editorially in Markdoc, this is comments: false in the post frontmatter.
If /anglesite:giscus is run again on a site that already has comments:
.site-configGISCUS_* keysTo remove comments entirely:
COMMENTS_PROVIDER and the GISCUS_* keys from .site-configCOMMENTS_PROVIDER is unsetnpm run ai-csp -- --prune so giscus.app drops out of the CSP (--prune removes only domains of providers that are no longer configured)When you add Giscus, mention these privacy considerations:
What SKILL.md sets; muted values are Claude Code's defaults
Use when the owner wants readers to comment on blog posts without running a comment database.
Three short reads, in order
npx claudepluginhub anglesite/anglesite-skills --plugin anglesite56 skills in this plugin
/bookingEmbed appointment scheduling (Cal.com or Calendly) into the siteOther plugins' skills for the same job