Skip to content

Add Claude Code skills and selective .gitignore for .claude/#976

Open
rajlearner17 wants to merge 3 commits intomainfrom
add-claude-skills
Open

Add Claude Code skills and selective .gitignore for .claude/#976
rajlearner17 wants to merge 3 commits intomainfrom
add-claude-skills

Conversation

@rajlearner17
Copy link
Copy Markdown
Contributor

Summary

  • Add 4 shared Claude Code skills in .claude/skills/ so contributors using Claude Code get repo-aware assistance out of the box
    • /new-policy-pack — scaffold a policy pack following repo conventions
    • /validate-policy-pack — check packs for structure, naming, and formatting
    • /find-policy-type — search repo for tmod:@turbot/ policy type URIs
    • /run-controls — guide through run_controls_batches.py (manual-only, dry-run first)
  • Update .gitignore to selectively ignore personal Claude Code state (.claude/memory/, settings.local.json) while keeping shared skills public
  • Uses .claude/skills/ (recommended path) over .claude/commands/ for frontmatter support (description, user-invocable, disable-model-invocation)

Ref: addresses David's feedback in #970 about having repo-specific .claude directory for skills.

Test plan

  • Clone repo fresh, open in Claude Code, verify /new-policy-pack, /validate-policy-pack, /find-policy-type, /run-controls appear as available commands
  • Run /find-policy-type ec2 instance and confirm it returns matching tmod URIs
  • Run /validate-policy-pack policy_packs/aws/ec2/enforce_instances_use_approved_instance_types and confirm it passes
  • Verify .claude/memory/ is gitignored (create a test file, confirm git status ignores it)

🤖 Generated with Claude Code

rajlearner17 and others added 3 commits April 3, 2026 19:44
Skills added:
- /new-policy-pack: scaffold a policy pack following repo conventions
- /validate-policy-pack: check packs for structure, naming, and formatting
- /find-policy-type: search repo for tmod: policy type URIs
- /review-baseline: validate baselines for CI compatibility

.gitignore updated to ignore personal state (.claude/memory/,
settings.local.json) while keeping shared commands public.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Remove review-baseline (low usage). Add run-controls skill that guides
users through running run_controls_batches.py with the right filters,
batch sizes, and cooldown — always showing a dry-run first.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Skills support frontmatter (description, user-invocable,
disable-model-invocation) and supporting files. Each skill is now
a SKILL.md inside its own directory.

- /run-controls has disable-model-invocation: true (manual-only)
- /find-policy-type, /new-policy-pack, /validate-policy-pack are
  auto-invocable since they are read-only or scaffolding operations

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@rajlearner17 rajlearner17 self-assigned this Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant