{"id":51445183,"url":"https://github.com/torifo/skills-safe-commit","last_synced_at":"2026-07-05T15:30:44.075Z","repository":{"id":358589028,"uuid":"1242000284","full_name":"torifo/skills-safe-commit","owner":"torifo","description":"Claude Code skill: pre-commit validator for secrets, AI attribution, and policy violations / コミット前にシークレット・AI帰属・ポリシー違反を検証してブロックする","archived":false,"fork":false,"pushed_at":"2026-05-18T03:46:46.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-18T05:50:44.562Z","etag":null,"topics":["claude-code","claude-skill","git","security"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/torifo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"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-05-18T03:27:44.000Z","updated_at":"2026-05-18T03:46:50.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/torifo/skills-safe-commit","commit_stats":null,"previous_names":["torifo/skills-safe-commit"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/torifo/skills-safe-commit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torifo%2Fskills-safe-commit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torifo%2Fskills-safe-commit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torifo%2Fskills-safe-commit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torifo%2Fskills-safe-commit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/torifo","download_url":"https://codeload.github.com/torifo/skills-safe-commit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torifo%2Fskills-safe-commit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35160046,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-05T02:00:06.290Z","response_time":100,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["claude-code","claude-skill","git","security"],"created_at":"2026-07-05T15:30:43.534Z","updated_at":"2026-07-05T15:30:44.068Z","avatar_url":"https://github.com/torifo.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"[English](#english) | [日本語](#日本語)\n\n---\n\n## English\n\n### skills-safe-commit\n\n\u003e Pre-commit validator for secrets, AI attribution, and policy violations\n\nA [Claude Code](https://claude.ai/code) skill that validates staged changes before committing. Blocks on secrets, AI attribution, oversized files, and policy violations.\n\n#### Install\n\n```bash\ngit clone https://github.com/torifo/skills-safe-commit /tmp/skills-safe-commit\ncp -r /tmp/skills-safe-commit/safe-commit ~/.claude/skills/\n```\n\n#### Usage\n\nTriggers before `git commit` with staged changes.\n\n**What it checks:**\n- Secrets and credentials (API keys, tokens, private keys)\n- AI attribution in commit messages\n- Oversized files (warn at 1MB, block at 5MB)\n- Policy violations (`.env` files, design assets in wrong dirs)\n\n**What it does:**\n- Blocks the commit with clear reasons if any check fails\n- Approves and shows commit preview if all checks pass\n\n#### Related Skills\n\n- [skills-secret-scan](https://github.com/torifo/skills-secret-scan) — deeper secret scanning across files and history\n- [skills-commit](https://github.com/torifo/skills-commit) — bilingual commit workflow to run after safe-commit approves\n\n---\n\n## 日本語\n\n### skills-safe-commit\n\n\u003e コミット前にシークレット・AI帰属・ポリシー違反を検証してブロックする\n\n[Claude Code](https://claude.ai/code) のスキル。コミット前にステージ済み変更を検証し、シークレット・AI帰属・大容量ファイル・ポリシー違反があればブロックします。\n\n#### インストール\n\n```bash\ngit clone https://github.com/torifo/skills-safe-commit /tmp/skills-safe-commit\ncp -r /tmp/skills-safe-commit/safe-commit ~/.claude/skills/\n```\n\n#### 使い方\n\nステージ済み変更がある状態で `git commit` 実行前に起動します。\n\n**検証内容:**\n- シークレット・認証情報（APIキー、トークン、秘密鍵）\n- コミットメッセージのAI帰属\n- 大容量ファイル（1MB警告・5MBブロック）\n- ポリシー違反（.envファイル、誤ったディレクトリのデザインアセット）\n\n#### 関連スキル\n\n- [skills-secret-scan](https://github.com/torifo/skills-secret-scan) — ファイル・履歴全体への深いシークレットスキャン\n- [skills-commit](https://github.com/torifo/skills-commit) — safe-commit承認後に使う英日バイリンガルコミット\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorifo%2Fskills-safe-commit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftorifo%2Fskills-safe-commit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorifo%2Fskills-safe-commit/lists"}