Skip to content
Back to skills

2521 Code Generation 32048ef0

ASecurity

**Opus**: Generates well-structured code with appropriate error handling, edge cases, naming conventions, and documentation. Infers architectural patterns from context. **Haiku**: Generates functional code for straightforward tasks. Common issues: - Omits error handling unless explicitly requested - May use inconsistent naming conventions - Documentation/comments sparse unless requested - Edge cases rarely handled proactively - May not match the existing codebase style **Mitigation**: Specify...

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
documentationpythondocumentation

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 2521-code-generation_32048ef0 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 2521 Code Generation 32048ef0?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 2521 Code Generation 32048ef0
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-2521-code-generation-32048ef0/badge)](https://www.skillsdirectory.com/skills/tools-only-2521-code-generation-32048ef0)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# Code Generation

**Opus**: Generates well-structured code with appropriate error handling,
edge cases, naming conventions, and documentation. Infers architectural
patterns from context.

**Haiku**: Generates functional code for straightforward tasks. Common
issues:
- Omits error handling unless explicitly requested
- May use inconsistent naming conventions
- Documentation/comments sparse unless requested
- Edge cases rarely handled proactively
- May not match the existing codebase style

**Mitigation**: Specify every non-obvious quality requirement.

```
Write a Python function that [task].

Requirements:
- Function signature: def process_data(input: list[dict]) -> dict
- Handle these edge cases: empty list, missing keys, non-string values
- Include type hints on all parameters and return value
- Add a docstring with Args, Returns, and Raises sections
- Use snake_case for variables
- Raise ValueError (not return None) for invalid input
- Include inline comments for non-obvious logic only
```

For code that must match existing style:
```
Match the coding style of this example:
[paste 10-20 lines of existing code]

Specifically match: indentation, naming convention, comment style,
error handling pattern, import style.
```

For complex code, decompose into functions:
"Write function A first. Then write function B that calls A.
Do not write a single monolithic function."

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.