All skills
oaustegard avatar

/down-skilling

@5e58100

Distill Opus-level reasoning into optimized instructions for Haiku 4.5 (and Sonnet). Generates explicit, procedural prompts with n-shot examples that maximize smaller model performance on a given task. Use when user says "down-skill", "distill for Haiku", "optimize for Haiku", "make this work on Haiku", "generate Haiku instructions", or needs to delegate a task to a smaller model with high reliability.

Use this Skill: https://skilld.dev/gh/oaustegard/claude-skills/down-skilling

This session only. Nothing lands on disk.

gapscode-generation.md

≈348 tokens on demand. Your agent reads this file only when SKILL.md points to it.

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."

Source: SKILL.md on GitHub

No alerts12d4 checks · Risk SAFE
  • Gen Agent Trust Hub12d

    The skill provides guidelines and templates for optimizing AI prompts for smaller models by distilling complex reasoning into explicit procedures and many-shot examples. No security issues were detected.

  • Socket12d

    No alerts

  • Snyk12d

    Risk: LOW · No issues

  • Runlayer7mo

    2/37 files flagged

Signed by skilld at 5e58100. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 3 weeks ago
metadata
{
  "author": "Oskar Austegard and Opus",
  "version": "1.3.1"
}

README badge

README badge for oaustegard/claude-skills/down-skilling