MCP HubMCP Hub
スキル一覧に戻る

Coding Conventions

majiayu000
更新日 Yesterday
21 閲覧
58
9
58
GitHubで表示
メタautomation

について

このスキルは、Python、TypeScript、JavaScript、Go、PHPのコード記述・修正時、およびgitコミット時に、言語固有のコーディング規約を自動的に適用します。新規コード作成、リファクタリング、コミットの際に作動し、命名規則、フォーマット、ドキュメンテーションの一貫性を保証します。開発ワークフロー内で直接、PEP 8、Airbnbスタイルガイド、Conventional Commitsなどの標準スタイルガイドを維持するためにご利用ください。

クイックインストール

Claude Code

推奨
プラグインコマンド推奨
/plugin add https://github.com/majiayu000/claude-skill-registry
Git クローン代替
git clone https://github.com/majiayu000/claude-skill-registry.git ~/.claude/skills/Coding Conventions

このコマンドをClaude Codeにコピー&ペーストしてスキルをインストールします

ドキュメント

Coding Conventions

Supported Languages

  • Python - PEP 8
  • TypeScript - Google & Microsoft Style Guide
  • JavaScript - Airbnb Style Guide
  • Go - Effective Go & Google Style Guide
  • PHP - PSR Standards
  • Git Commits - Conventional Commits

Workflow

When writing or modifying code:

  1. Identify the language of the file being edited
  2. Read the appropriate convention file from references/ directory
  3. Apply conventions consistently to naming, formatting, documentation, and organization

Convention Files

  • references/python-conventions.md - Python (PEP 8)
  • references/typescript-conventions.md - TypeScript
  • references/javascript-conventions.md - JavaScript (Airbnb)
  • references/golang-conventions.md - Go
  • references/php-conventions.md - PHP (PSR)
  • references/git-commit-conventions.md - Git commit format

Git Commit Quick Reference

Follow Conventional Commits format:

<type>(<scope>): <subject>

Common types: feat, fix, docs, style, refactor, test, chore

Rules:

  • Imperative present tense: "add" not "added"
  • Lowercase subject, no period
  • Keep subject under 50 characters
  • Include Co-Authored-By: Claude Sonnet 4.5 <[email protected]>

Example:

feat(auth): add user authentication

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>

For complete git commit guidelines, see references/git-commit-conventions.md.

Priority Rules

  1. Project-specific conventions override language defaults
  2. Existing code style should be matched for consistency
  3. Automatic tools (ESLint, Prettier, gofmt) should be respected if configured
  4. Convention files provide the default standards

GitHub リポジトリ

majiayu000/claude-skill-registry
パス: skills/conventions

関連スキル

content-collections

メタ

This skill provides a production-tested setup for Content Collections, a TypeScript-first tool that transforms Markdown/MDX files into type-safe data collections with Zod validation. Use it when building blogs, documentation sites, or content-heavy Vite + React applications to ensure type safety and automatic content validation. It covers everything from Vite plugin configuration and MDX compilation to deployment optimization and schema validation.

スキルを見る

sglang

メタ

SGLang is a high-performance LLM serving framework that specializes in fast, structured generation for JSON, regex, and agentic workflows using its RadixAttention prefix caching. It delivers significantly faster inference, especially for tasks with repeated prefixes, making it ideal for complex, structured outputs and multi-turn conversations. Choose SGLang over alternatives like vLLM when you need constrained decoding or are building applications with extensive prefix sharing.

スキルを見る

cloudflare-turnstile

メタ

This skill provides comprehensive guidance for implementing Cloudflare Turnstile as a CAPTCHA-alternative bot protection system. It covers integration for forms, login pages, API endpoints, and frameworks like React/Next.js/Hono, while handling invisible challenges that maintain user experience. Use it when migrating from reCAPTCHA, debugging error codes, or implementing token validation and E2E tests.

スキルを見る

Algorithmic Art Generation

メタ

This skill helps developers create algorithmic art using p5.js, focusing on generative art, computational aesthetics, and interactive visualizations. It automatically activates for topics like "generative art" or "p5.js visualization" and guides you through creating unique algorithms with features like seeded randomness, flow fields, and particle systems. Use it when you need to build reproducible, code-driven artistic patterns.

スキルを見る