Code Style
OfficialThis skill automatically formats your code to adhere to a defined style guide, improving readability and consistency across projects.
Install on your platform
Showing Claude Code. One command installs this skill into any of the agents below.
- 1
Run this in your project
terminal$ npx skills add automattic/wordpress-activitypub --skill code-style -a claude-code Uses the open-source
skillsCLI and needs Node.js. Add-gto install it for your user instead of this project.
What we know about this skill
Publisher
automattic
Matched to the vendor's own GitHub organisation.
Install target
Live repository
Not pinned. Installing fetches whatever the repository holds at the time you run the command.
Automated safety checks
We could not read this skill's source, so none of the checks below were run.
About this skill
code-style
What it does
This skill enables AI agents to enforce consistent coding standards and formatting rules within software projects. It ensures that generated or modified code adheres to specific style guides, maintaining readability and uniformity across a codebase.
When to use it
- Standardizing code contributions from multiple developers in a team environment.
- Preparing codebases for automated linting tools or static analysis pipelines.
- Ensuring new AI-generated code matches the existing architectural patterns of a legacy project.
- Enforcing specific language conventions (e.g., PEP 8 for Python, Airbnb style guide for JavaScript).
Key capabilities
- Applies predefined coding style configurations to source files.
- Validates syntax and formatting against established industry standards.
- Integrates directly into the development workflow to catch style violations early.
Example prompts
- "Apply the project's existing code-style configuration to this new Python module."
- "Refactor this JavaScript function to comply with Airbnb style guidelines using the code-style skill."
- "Check if the generated SQL queries match our database team's formatting standards."
Tips & gotchas
Ensure the target project has a defined style guide or configuration file (like .editorconfig, .eslintrc, or pyproject.toml) before invoking this skill, as it relies on existing rules to function effectively.