Standardize formatting and apply consistent style to the deliverable. Use after generation to ensure the output matches the user's formatting standards and conventions.
Ensures the generated deliverable follows consistent formatting, style, and structure standards. This is the "polish" step that makes work look professional and maintainable.
Use StandardsRepository to access formatting preferences:
const standards = standardsRepository.getStandards(context.projectType)
if (standards && standards.commonPatterns) {
// Apply their formatting preferences from commonPatterns
standards.commonPatterns.forEach(pattern => {
// Example: "Use 2-space indentation", "Sort imports alphabetically"
applyFormattingPattern(pattern)
})
}
See .claude/lib/standards-repository.md for interface details.
# Formatting Applied
## Standards Used
- [First formatting standard]
- [Second formatting standard]
- [Tools/conventions applied]
## Changes Made
- [List of formatting changes applied]
- [Example: "Sorted imports alphabetically"]
- [Example: "Applied 2-space indentation"]
## The Formatted Deliverable
[Complete formatted output, ready to use]
## Validation
- Consistent formatting: ā
- Professional appearance: ā
- Ready for review/delivery: ā
ā All formatting is consistent ā Follows user's standards ā Professional appearance ā Ready for code review or publication ā No formatting inconsistencies remain
For Code:
For Documentation:
For Content:
Input (Before Formatting):
const MyComponent = ( props ) => {
return (
<div>
{ props.title }
</div>
);
};
export default MyComponent
After Formatting (assuming standard React conventions):
const MyComponent = (props) => {
return (
<div>
{props.title}
</div>
);
};
export default MyComponent;
Changes Made: