If you're using SpecStory to track AI coding sessions, this installs a pre-commit hook that scans your .specstory/history directory for accidentally captured secrets before they hit your repository. It catches the usual suspects like AWS keys, bearer tokens, and private keys, then blocks the commit until you redact them. The hook runs automatically, the scan is fast (under a second for hundreds of files), and you can allowlist false positives with regex patterns. Smart safety net for a real problem: API keys you pasted into chat or credentials that showed up in command output can easily end up in your history files without you noticing.

skills.sh installs
262
GitHub stars
35
last updated
Aug 21, 2026

Install

$ npx -y skills add specstoryai/agent-skills --skill specstory-guard --agent claude-code

Installs into .claude/skills of the current project.

Files

SpecStory Guard

A pre-commit guardrail that scans .specstory/history for potential secrets and blocks commits until they are removed or redacted.

How It Works

  1. Installs a git pre-commit hook in your repository
  2. Scans .specstory/history files on every commit
  3. Detects common secret patterns (API keys, tokens, private keys)
  4. Blocks the commit if secrets are found
  5. Reports findings with redacted previews for safe review

Why Use Guard?

AI coding sessions may inadvertently capture sensitive data:

  • API keys you pasted into chat
  • Environment variables in command output
  • Private keys or tokens in error messages
  • Credentials in configuration examples

Guard prevents accidental commits of these secrets.

Usage

Slash Command

User saysAction
/specstory-guardInstall the pre-commit hook
/specstory-guard installInstall the pre-commit hook
/specstory-guard scanRun a manual scan without installing
/specstory-guard checkAlias for scan
/specstory-guard uninstallRemove the pre-commit hook

Direct Script Usage

Sponsors

Details

Repository
github.com/specstoryai/agent-skills
Categories
Git & Pull Requests, AI & Agent Building
First seen
Jun 3, 2026

More from specstoryai/agent-skills

All 6
1microsoft avatarwinui-designmicrosoft/win-dev-skillsWinUI 3 UI design and XAML correctness — layout planning, control selection, Fluent Design, theming (Light/Dark/HighContrast), typography styles, spacing, brush261skills.sh installs
2patricio0312rev avatarprompt-regression-testerpatricio0312rev/skillsCompares old vs new prompts across test cases with diff summaries, stability metrics, breakage analysis, and fix suggestions. Use for "prompt testing", "A/B tes261skills.sh installs
3tech-leads-club avatarjira-assistanttech-leads-club/agent-skillsManage Jira issues via Atlassian MCP — search, create, update, transition status, and handle sprint tasks. Auto-detects workspace configuration. Use when user s261skills.sh installs
4josiahsiegel avatarsql-server-2025josiahsiegel/claude-plugin-marketplaceSQL Server 2025 and SqlPackage 170.2.70 (October 2025) — vector databases, AI integration, and modern features. PROACTIVELY activate for: (1) SQL Server 2025 fe260skills.sh installs
5octagonai avatarsec-analyst-masteroctagonai/skillsComprehensive SEC filing analyst skill that orchestrates all Octagon SEC analysis skills. Use when conducting due diligence, regulatory compliance review, M&A a260skills.sh installs
6sundial-org avatarskill-vettersundial-org/awesome-openclaw-skillsSecurity-first skill vetting for AI agents. Use before installing any skill from ClawdHub, GitHub, or other sources. Checks for red flags, permission scope, and260skills.sh installs