refine-aichat-role

Refine aichat role prompts with WRONG/RIGHT examples and recency bias.

3|1|Updated Jun 20, 2016
One-click install
npx skills add https://github.com/paulchiu/dotfiles --skill refine-aichat-role
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: refine-aichat-role
Source: https://github.com/paulchiu/dotfiles/tree/main/.config/opencode/skills/refine-aichat-role
Command: npx skills add https://github.com/paulchiu/dotfiles --skill refine-aichat-role

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Refines aichat role prompts (committer, pr-writer, etc.) based on user feedback about output quality. Use when asked to fix, adjust, or improve any aichat role's generation quality.

Core Features & Use Cases

  • Guided, rule-based prompt refinement that targets the most impactful changes for Haiku-class models.
  • Supports incorporating explicit WRONG/RIGHT examples, applying recency bias by nudging critical rules to the end, and ensuring identifiers (file names, versions, etc.) are wrapped in backticks.
  • Use case: when an aichat role produces outputs that fail to meet expectations, edit the role file to align behavior with user requirements.

Quick Start

Edit the target aichat role file to apply the refinement guidelines and improve output quality.

Frequently Asked Questions about refine-aichat-role

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I refine AI role prompts to improve output quality?

To refine AI role prompts, you apply structured editing guidelines to the role file, such as adding explicit WRONG/RIGHT examples and wrapping identifiers in backticks. This targets the most impactful changes to align generation behavior with user expectations.

Why does my AI chat role generate unexpected outputs?

AI chat roles generate unexpected outputs when the prompt lacks recency bias or explicit examples. Nudging critical rules to the end of the role file and providing template-driven formatting ensures robust, maintainable behavior for Haiku-class models.

What is the best way to fix an AI chat role prompt that fails expectations?

The best way to fix an AI chat role prompt is through rule-based refinement targeting specific divergences. Edit the role file to apply guidelines like recency bias and explicit WRONG/RIGHT examples, ensuring the output meets your requirements.

How do I edit aichat role files for better generation quality?

You edit aichat role files by applying targeted refinements based on user feedback. This involves incorporating template-driven formatting, ensuring identifiers like file names are wrapped in backticks, and structuring the prompt for maintainability.

Does prompt engineering with recency bias work for Haiku-class models?

Prompt engineering with recency bias works effectively for Haiku-class models by nudging critical rules to the end of the role file. This guides the model to prioritize the most recent instructions, improving output quality and alignment.

When should I not use template-driven formatting for role prompts?

You should avoid template-driven formatting for role prompts when the generation task requires highly dynamic or unstructured outputs. However, for committer and pr-writer roles, maintaining structured formatting ensures robust and maintainable behavior.