Skip to content

olegiv/claude-code-support-tools

Repository files navigation

Claude Code Support Tools

A collection of powerful extensions for Claude Code including autonomous agents, slash commands, global configurations, and GitHub Actions workflows.

What's Inside

πŸ€– Autonomous Agents

Security Auditor (agents/security-auditor.md)

  • Elite Application Security Engineer with 15+ years of simulated expertise
  • Comprehensive vulnerability scanning (OWASP Top 10, CVE databases)
  • Static Application Security Testing (SAST) and dependency analysis
  • Generates structured security audit reports with remediation guidance
  • Use for pre-release audits, dependency checks, and security reviews

Project Architect (agents/project-architect.md)

  • Elite Software Architect that analyzes any project's tech stack
  • Automatically detects languages, frameworks, build tools, testing infrastructure
  • Generates custom Claude Code agents, skills, and commands tailored to the project
  • Creates workflow-specific extensions (test-runner, build-manager, linter-helper, etc.)
  • Updates existing documentation (CLAUDE.md, README.md) to document new tools
  • Use when setting up Claude Code for a new project or after major tech stack changes

Repository Maintenance Agents (.claude/agents/)

  • markdown-linter - Validates agent and command files for proper YAML frontmatter and structure
  • doc-sync-manager - Synchronizes documentation across README.md and CLAUDE.md
  • template-validator - Ensures templates follow Claude Code best practices
  • release-manager - Manages versioning, changelog generation, and releases

⚑ Slash Commands

Project Setup Command

  • /setup-project-tools - Automatically analyze project and generate tailored agents, skills, and commands

Security Audit Command

  • /security-audit - Perform comprehensive security audit of the project (invokes security-auditor agent)

Repository Maintenance Commands

  • /validate-agents - Validate all agent files for proper structure and syntax
  • /validate-commands - Validate all command files for proper structure and syntax
  • /sync-docs - Synchronize documentation after adding/modifying agents or commands
  • /test-workflows - Validate GitHub Actions workflow syntax and best practices
  • /new-agent - Scaffold a new agent file with proper template
  • /new-command - Scaffold a new command file with proper template

Commit Workflow Commands

  • /commit-prepare - Review changes and draft commit messages following best practices
  • /commit-do - Create commits with proper formatting and HEREDOC syntax

Both commit commands enforce strict commit message standards:

  • Subject line: max 50 chars, imperative mood
  • Body: wrapped at 72 chars, explains what and why
  • Clean messages without AI attribution footers

🌐 Global Configuration Templates

Located in global/ directory - copy these to your ~/.claude/ directory:

global/CLAUDE.md

  • Strict git workflow rules (no automatic commits/pushes)
  • Commit message formatting standards
  • Platform-specific command compatibility (macOS/Linux)
  • Permission file management guidelines

global/settings.json

  • Custom status line showing project, git branch, and model
  • Always-thinking mode enabled
  • Template for team-wide settings

πŸ”„ GitHub Actions Workflows

Automated PR Reviews (.github/workflows/claude-code-review.yml)

  • Runs on PR open/synchronize events
  • Reviews code quality, security, performance, and test coverage
  • Posts feedback as PR comments

@claude Mention Response (.github/workflows/claude.yml)

  • Triggers when @claude is mentioned in issues or PRs
  • Responds to requests with full repository access
  • Supports issue comments, PR reviews, and new issues

πŸ› οΈ Stack-Specific Configurations

Located in stacks/ directory - copy these to your project's .claude/ directory:

Go (stacks/go/)

  • Pre-configured hooks, agents, and commands for Go development
  • validate-go-toolchain.sh - Blocks builds when Go version mismatches compiler
  • validate-go-test.sh - Recommends race detection for test commands
  • code-quality-auditor agent - Comprehensive code quality scanning
  • /code-quality and /commit-prepare commands with quality integration

Swift/Xcode (stacks/swift/)

  • Pre-configured hooks for Xcode project development
  • validate-xcodebuild.sh - Ensures xcodebuild commands use correct simulator (iPhone 17 Pro)
  • Prevents build failures from incorrect simulator targets

Kotlin/Android (stacks/kotlin/)

  • Pre-configured agents and commands for Android/Kotlin development
  • android-quality-auditor agent - Comprehensive Android code quality scanning (SDK, Gradle, dependencies, lint, Compose)
  • kotlin-refactorer agent - Kotlin refactoring and best practices
  • compose-developer agent - Jetpack Compose UI development
  • /code-quality, /lint, /clean, /test-instrumented commands

πŸ”’ Security Documentation

Security Policy (SECURITY.md)

  • Vulnerability disclosure via GitHub Security Advisories
  • 48-hour response SLA for security reports
  • Token rotation policy (90 days for OAuth tokens)
  • Incident response procedures

Threat Model (.github/THREAT_MODEL.md)

  • Attack scenarios (expression injection, prompt injection, supply chain)
  • Trust boundaries and security assumptions
  • Implemented controls (preventive, detective, corrective)
  • Residual risks and user recommendations

Supply Chain Security (.github/SUPPLY_CHAIN_SECURITY.md)

  • GitHub Actions dependency inventory with pinned SHAs
  • Verification process for adding new dependencies
  • Incident response for supply chain compromises

Installation

Using Agents

Copy agent files to your project's .claude/agents/ directory:

cp agents/security-auditor.md /path/to/your/project/.claude/agents/

Then invoke in Claude Code:

# In Claude Code conversation
Please use the security-auditor agent to audit this codebase

Using Slash Commands

Copy command files to your project's .claude/commands/ directory:

# Project setup command
cp commands/setup-project-tools.md /path/to/your/project/.claude/commands/

# Commit workflow commands
cp .claude/commands/commit-prepare.md /path/to/your/project/.claude/commands/
cp .claude/commands/commit-do.md /path/to/your/project/.claude/commands/

Then use in Claude Code:

/setup-project-tools
/commit-prepare
/commit-do

Using Global Configurations

Copy global files to your ~/.claude/ directory:

# Create directory if it doesn't exist
mkdir -p ~/.claude

# Copy global configuration
cp global/CLAUDE.md ~/.claude/
cp global/settings.json ~/.claude/

These will apply to all your Claude Code sessions across all projects.

Using Stack-Specific Configurations

Copy stack-specific tools to your project:

# For Go projects
cp stacks/go/settings.json /path/to/your/project/.claude/
mkdir -p /path/to/your/project/.claude/hooks
cp stacks/go/hooks/*.sh /path/to/your/project/.claude/hooks/
chmod +x /path/to/your/project/.claude/hooks/*.sh
# Optional: Copy agents and commands
cp -r stacks/go/agents /path/to/your/project/.claude/
cp -r stacks/go/commands /path/to/your/project/.claude/

# For Swift/Xcode projects
cp stacks/swift/settings.json /path/to/your/project/.claude/
mkdir -p /path/to/your/project/.claude/hooks
cp stacks/swift/hooks/validate-xcodebuild.sh /path/to/your/project/.claude/hooks/
chmod +x /path/to/your/project/.claude/hooks/validate-xcodebuild.sh

# For Kotlin/Android projects
cp -r stacks/kotlin/agents /path/to/your/project/.claude/
cp -r stacks/kotlin/commands /path/to/your/project/.claude/

Setting Up GitHub Actions

  1. Generate Claude Code OAuth Token

  2. Add Secret to Repository

    • Go to your repository Settings > Secrets and variables > Actions
    • Add new secret: CLAUDE_CODE_OAUTH_TOKEN
    • Paste your OAuth token
  3. Copy Workflow Files

    mkdir -p .github/workflows
    cp .github/workflows/claude-code-review.yml .github/workflows/
    cp .github/workflows/claude.yml .github/workflows/
  4. Customize as Needed

    • Edit claude_args to restrict or expand allowed tools
    • Modify triggers and filters for your workflow
    • Adjust review prompts and criteria

Security Note: These workflows include security hardening (pinned actions, tool restrictions, trusted user checks). Before deploying, review SECURITY.md for token rotation requirements and best practices.

Usage Examples

Project Setup

# In Claude Code - Option 1: Use slash command
/setup-project-tools

# Option 2: Invoke agent directly
Use the project-architect agent to analyze this project and generate
tailored Claude Code extensions for my tech stack.

The agent will:

  1. Analyze your project (languages, frameworks, build tools, testing, etc.)
  2. Generate custom agents in .claude/agents/ (e.g., test-runner, build-manager)
  3. Generate slash commands in .claude/commands/ (e.g., /test, /build, /lint)
  4. Create skills in .claude/skills/ if needed
  5. Update existing documentation (CLAUDE.md, README.md, etc.) with new tools
  6. Provide quick start guide for using the generated extensions

Security Audit

# In Claude Code
Use the security-auditor agent to perform a comprehensive security audit
of this codebase, focusing on authentication and API endpoints.

The agent will generate multiple markdown reports:

  • security-audit-application-code.md
  • security-audit-dependencies.md
  • security-audit-authentication.md
  • security-audit-api.md
  • security-audit-summary.md

Commit Workflow

# Step 1: Review changes and prepare message
/commit-prepare

# Step 2: Create the commit
/commit-do

GitHub Actions PR Review

Simply open a PR and the security-auditor will automatically:

  1. Analyze the changes
  2. Check for bugs, security issues, and code quality
  3. Post a review comment with findings

@claude Mentions

In any issue or PR comment:

@claude can you add unit tests for the new authentication module?

Claude will respond and complete the task with full repository access.

Directory Structure

.
β”œβ”€β”€ agents/                        # Autonomous agent definitions
β”‚   β”œβ”€β”€ security-auditor.md       # Security vulnerability scanning
β”‚   └── project-architect.md      # Project analysis & tool generation
β”œβ”€β”€ .claude/
β”‚   β”œβ”€β”€ agents/                    # Repository-specific agents
β”‚   β”‚   β”œβ”€β”€ markdown-linter.md    # Validate agent/command files
β”‚   β”‚   β”œβ”€β”€ doc-sync-manager.md   # Synchronize documentation
β”‚   β”‚   β”œβ”€β”€ template-validator.md # Validate template quality
β”‚   β”‚   └── release-manager.md    # Manage releases and versioning
β”‚   └── commands/                  # Repository-specific slash commands
β”‚       β”œβ”€β”€ commit-prepare.md     # Review changes
β”‚       β”œβ”€β”€ commit-do.md          # Create commits
β”‚       β”œβ”€β”€ security-audit.md     # Security audit command
β”‚       β”œβ”€β”€ validate-agents.md    # Validate agent files
β”‚       β”œβ”€β”€ validate-commands.md  # Validate command files
β”‚       β”œβ”€β”€ sync-docs.md          # Update documentation
β”‚       β”œβ”€β”€ test-workflows.md     # Validate workflows
β”‚       β”œβ”€β”€ new-agent.md          # Scaffold new agent
β”‚       └── new-command.md        # Scaffold new command
β”œβ”€β”€ commands/                      # Template commands for copying to projects
β”‚   β”œβ”€β”€ setup-project-tools.md
β”‚   └── no-ticket/                 # Alternative command structures
β”œβ”€β”€ stacks/                        # Stack-specific configurations
β”‚   β”œβ”€β”€ go/                        # Go project tools
β”‚   β”‚   β”œβ”€β”€ settings.json          # Hook configuration for Go commands
β”‚   β”‚   β”œβ”€β”€ hooks/
β”‚   β”‚   β”‚   β”œβ”€β”€ validate-go-toolchain.sh  # Toolchain version validation
β”‚   β”‚   β”‚   └── validate-go-test.sh       # Test command recommendations
β”‚   β”‚   β”œβ”€β”€ agents/
β”‚   β”‚   β”‚   └── code-quality-auditor.md   # Code quality scanning agent
β”‚   β”‚   └── commands/
β”‚   β”‚       β”œβ”€β”€ code-quality.md    # Run quality checks
β”‚   β”‚       └── commit-prepare.md  # Commit with quality integration
β”‚   β”œβ”€β”€ swift/                     # Swift/Xcode project tools
β”‚   β”‚   β”œβ”€β”€ settings.json          # Hook configuration for xcodebuild
β”‚   β”‚   └── hooks/
β”‚   β”‚       └── validate-xcodebuild.sh  # Simulator validation hook
β”‚   └── kotlin/                    # Kotlin/Android project tools
β”‚       β”œβ”€β”€ agents/
β”‚       β”‚   β”œβ”€β”€ android-quality-auditor.md  # Android code quality auditor
β”‚       β”‚   β”œβ”€β”€ kotlin-refactorer.md        # Kotlin refactoring agent
β”‚       β”‚   └── compose-developer.md        # Jetpack Compose development
β”‚       └── commands/
β”‚           β”œβ”€β”€ code-quality.md    # Run quality checks
β”‚           β”œβ”€β”€ lint.md            # Run Android Lint
β”‚           β”œβ”€β”€ clean.md           # Clean build artifacts
β”‚           └── test-instrumented.md  # Run instrumented tests
β”œβ”€β”€ global/                        # User-level configuration templates
β”‚   β”œβ”€β”€ CLAUDE.md
β”‚   └── settings.json
β”œβ”€β”€ .github/
β”‚   β”œβ”€β”€ workflows/                 # GitHub Actions workflows
β”‚   β”‚   β”œβ”€β”€ claude.yml
β”‚   β”‚   └── claude-code-review.yml
β”‚   β”œβ”€β”€ THREAT_MODEL.md            # Security threat model
β”‚   └── SUPPLY_CHAIN_SECURITY.md   # Supply chain security policy
└── SECURITY.md                    # Vulnerability disclosure policy

Dependencies

This repository has no runtime dependencies. It consists entirely of:

  • Markdown documentation and agent definition files
  • YAML configuration files for GitHub Actions
  • JSON configuration files

If dependencies are added in the future, they must:

  • Use lockfiles (package-lock.json, go.sum, etc.)
  • Be scanned for vulnerabilities with Dependabot
  • Follow semantic versioning
  • Have versions pinned in production

Contributing

Feel free to add your own:

  • Agents - Create specialized agents for different domains (testing, refactoring, documentation, etc.)
  • Commands - Build workflow-specific slash commands
  • Workflows - Share GitHub Actions configurations for different use cases

Resources

License

MIT License - see LICENSE file for details.

About

Claude Code support tools: autonomous skills, expert agents, slash commands and prompts

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages