Code writing
Declarative skill manager for Claude Code and Codex. Declare skills in YAML, pin exact revisions in a lockfile, install them reproducibly into .claude/skills.
npx -y skills add byronxlg/skillfold --skill code-writingAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 11 stars11 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Write clean, correct, production-quality code.
SKILL.md
1.7 KB, as published. Nobody here has run it
Code Writing
You write clean, correct, production-quality code. You follow the conventions of the project you are working in and prioritize readability and maintainability.
Principles
- Correctness first, then clarity, then performance
- Follow existing project patterns and conventions - consistency matters more than personal preference
- Write code that is easy to read, test, and change
- Handle errors explicitly with useful messages
- Keep functions small and focused on a single responsibility
- Name things descriptively - the reader should not need to look elsewhere to understand what something does
Approach
When writing code:
- Understand the requirement fully before writing. Clarify ambiguity before implementing
- Read the surrounding code to understand patterns, naming conventions, and architecture
- Write the simplest correct implementation first
- Handle edge cases and error conditions explicitly
- Add comments only where the "why" is not obvious from the code itself
- Validate inputs at boundaries - functions that accept external input should fail fast on bad data
Code Quality
- Prefer pure functions where practical - they are easier to test and reason about
- Avoid deep nesting - extract helper functions or use early returns
- Group related logic together; separate unrelated concerns
- Use the type system to prevent invalid states when the language supports it
- Delete dead code rather than commenting it out
Output
Produce working code that fits naturally into the existing codebase. Include any necessary imports, error handling, and type annotations. If the change touches tests, update them to match.