AI assistant configurations for Claude Code, Codex CLI, OpenCode, and Gemini CLI. Supports Solidity and TypeScript development with enterprise-grade defaults. Ideal for operations teams automating blockchain and cloud-native infrastructure tasks.
git clone https://github.com/roderik/ai-rules.gitai-rules is a collection of professional skills for AI assistants including Claude Code, Codex CLI, OpenCode, and Gemini CLI. It provides pre-configured, production-ready skills for Solidity smart contract development, TypeScript applications, Kubernetes deployments, infrastructure-as-code with Pulumi, and modern authentication frameworks. The skill set emphasizes security-first practices for blockchain development and enterprise-grade defaults for cloud-native infrastructure automation. Operations teams and developers can install skills globally or sync them to projects, then reference them through natural language commands to accelerate setup and implementation. Each skill includes best practices for tools like Foundry, Drizzle ORM, NestJS, and the TanStack ecosystem.
[{"step":"Identify your primary use case","action":"Select between Solidity smart contract development or TypeScript API scaffolding. For blockchain ops, focus on gas optimization and reentrancy checks. For cloud-native apps, prioritize type safety and security headers.","tip":"Use the 'rules' section to filter relevant checks for your project type. Example: If auditing a DeFi protocol, enable all 'solidity_audit' rules."},{"step":"Customize the configuration file","action":"Edit the [FORMAT] file (e.g., .claude.json) to update benchmarks, thresholds, and regulatory frameworks. Replace [PLACEHOLDERS] with your specific values (e.g., change 'ethereum_mainnet' to 'polygon_pos' if deploying to Polygon).","tip":"For enterprise teams, collaborate with security and compliance teams to validate regulatory rules before deployment."},{"step":"Integrate with your AI assistant","action":"Save the configuration file in your project root or home directory. For Claude Code, place it as '.claude.json'. For Codex CLI, use '.codexrc'. Restart your AI assistant to load the new rules.","tip":"Test the configuration with a non-critical file first. Example: Run 'claude audit --dry-run' on a test contract before applying to production code."},{"step":"Automate execution","action":"Set up CI/CD pipelines to run the AI assistant checks on every commit. Example: Add a GitHub Actions workflow that triggers 'codex check --rules=solidity_audit' on pull requests.","tip":"Use the 'performance' section to set up automated benchmarks. Example: Configure a nightly job to compare gas usage against your target threshold."},{"step":"Monitor and iterate","action":"Review the AI assistant's output logs and adjust rules as needed. Use the 'error_handling' section to refine fallback strategies based on common failures.","tip":"Log false positives/negatives to improve rule accuracy. Example: If the AI flags a safe pattern as reentrant, update the 'reentrancy_guard' rule to exclude that pattern."}]
Secure Solidity smart contract development with Foundry
TypeScript and full-stack application setup with modern tooling
Kubernetes and multi-cloud infrastructure deployments
Infrastructure-as-Code automation with Pulumi
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/roderik/ai-rulesCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Generate a production-ready AI assistant configuration for [TOOL_NAME] (e.g., Claude Code, Codex CLI, OpenCode, or Gemini CLI) optimized for [LANGUAGE] development with enterprise-grade defaults. Include: 1) Pre-configured rules for [SPECIFIC_TASK] (e.g., Solidity smart contract audits, TypeScript API scaffolding), 2) Security and compliance checks for [REGULATORY_FRAMEWORK] (e.g., GDPR, SOC2), 3) Performance benchmarks for [INFRASTRUCTURE] (e.g., AWS Lambda, Ethereum mainnet), and 4) Error handling for [COMMON_FAILURE_MODES] (e.g., gas limit errors, race conditions). Output the configuration as a [FORMAT] file (e.g., .claude.json, .codexrc).
{"file":".claude.json","content":{"rules":{"solidity_audit":{"description":"Enterprise-grade Solidity smart contract audit ruleset","checks":[{"rule":"reentrancy_guard","severity":"critical","description":"Enforce checks-effects-interactions pattern","example":"require(!locked, \"Reentrancy detected\");"},{"rule":"gas_optimization","severity":"high","description":"Optimize storage layout and function calls","threshold":"10% gas reduction vs. baseline"},{"rule":"compliance_solidity","severity":"high","description":"Validate against ERC standards and regulatory requirements","standards":["ERC20","ERC721"],"regulatory":["SEC_DeFi_Guidelines"]}],"performance":{"benchmark":"ethereum_mainnet","target":"500ms avg. execution time","max_gas":"8M"},"error_handling":{"common_failures":["out_of_gas","stack_too_deep"],"fallback":"Use OpenZeppelin's SafeMath and custom gas estimators"}},"typescript_api":{"description":"TypeScript API scaffolding with enterprise defaults","checks":[{"rule":"type_safety","severity":"critical","description":"Enforce strict null checks and type guards","example":"export type UserId = string & { __brand: 'UserId' };"},{"rule":"security_headers","severity":"high","description":"Validate security headers for API responses","headers":["X-Content-Type-Options","Strict-Transport-Security"]}],"performance":{"benchmark":"aws_lambda","target":"100ms cold start","memory":"512MB"}}},"metadata":{"version":"1.2.0","last_updated":"2024-05-15","author":"Enterprise DevOps Team","compatibility":{"tools":["Claude Code","Codex CLI"],"languages":["Solidity","TypeScript"]}}}}Google's multimodal AI model and assistant
AI assistant built for thoughtful, nuanced conversation
Run revenue like an engineered system
Get more done every day with Microsoft Teams – powered by AI
Agentic AI Workflow platform
Connected workspace for docs, wikis, and projects
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan