Code Formatting
Automatically formats code to adhere to OpenShift style guides, improving readability and consistency across projects.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add code-formatting npx -- -y @trustedskills/code-formatting
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"code-formatting": {
"command": "npx",
"args": [
"-y",
"@trustedskills/code-formatting"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
The code-formatting skill standardizes source code style and structure within OpenShift Hypershift environments. It ensures consistency across infrastructure-as-code files, making complex deployments easier to read and maintain.
When to use it
- Before submitting large-scale cluster configuration changes to a team repository.
- When integrating third-party Helm charts or operators into an existing Hypershift setup.
- To automatically fix indentation and spacing issues in YAML manifests generated by CI/CD pipelines.
- During code reviews to enforce organization-specific coding standards without manual intervention.
Key capabilities
- Enforces consistent formatting rules for OpenShift Hypershift infrastructure configurations.
- Automatically corrects syntax errors related to whitespace and indentation in YAML files.
- Aligns code style with best practices specific to the Kubernetes ecosystem.
Example prompts
- "Format my Hypershift cluster configuration YAML file according to standard conventions."
- "Apply consistent indentation rules to this list of node pool definitions for OpenShift."
- "Check and fix formatting issues in my
hypershift-config.yamlbefore I commit it."
Tips & gotchas
Ensure your source files are valid YAML, as the formatter relies on correct syntax to apply structural changes. While this tool handles standard Hypershift configurations, highly custom or non-standard manifest structures may require manual verification after formatting.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🏢 Official
Published by the company or team that built the technology.