본문으로 건너뛰기
cccskills
무료GitHub에 공개

prompt-engineering

Use when designing, optimizing, testing, or deploying robust prompt systems for AI agents. This skill provides frameworks for structured prompt engineering, meta-prompting, and automated optimization workflows.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md3.9 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Prompt Engineering Skill

Overview

The prompt-engineering skill establishes a disciplined approach to LLM instruction design within the KILO-KIT ecosystem. Moving beyond ad-hoc prompting, this skill treats prompts as first-class code, emphasizing contract-based structures, declarative signatures, and rigorous validation loops to ensure reproducible, high-quality AI behavior.

When To Use

  • When developing new LLM-powered features or agents.
  • When existing prompts produce inconsistent, fragile, or hallucinated outputs.
  • When implementing complex reasoning tasks that require strict output formatting.
  • When you need to scale prompt maintenance across a team or large codebase.
  • When setting up automated prompt optimization or regression testing pipelines.

Core Concepts

Contract-First Prompt Architecture

Prompts are defined using a 5-part structure to ensure clarity and modularity:

  1. Identity: Define the persona, expertise, and operational boundaries.
  2. Context Boundaries: Explicitly define what data is in-scope and what is off-limits.
  3. Operational Rules: Step-by-step logic and prioritized directives.
  4. Edge Cases: Explicit handling of ambiguous, empty, or adversarial inputs.
  5. Output Schemas: Declarative JSON, XML, or Pydantic schemas to enforce structured output.

Reasoning Model Steerability

Optimizing for advanced reasoning models (e.g., o1, o3, Gemini 2.0+):

  • Reasoning Effort Control: Explicitly specify constraints to trade-off speed vs. reasoning depth.
  • Chain-of-Symbol (CoS): Use compact symbol-based notation for complex logic to minimize token usage and improve coherence.
  • XML/Markdown Boundary Formatting: Utilize strict XML tags (e.g., <thought>, <logic>, <result>) to segment reasoning from content.

DSPy Integration

Leverage programmatic prompt optimization:

  • Signatures: Define declarative Input/Output contracts.
  • Optimizers: Apply BootstrapFewShot, MIPROv2, or COPRO to automatically refine prompts based on validation datasets.

Workflow

  1. Define: Create a declarative signature for the task.
  2. Draft: Implement using the Contract-First structure.
  3. Optimize: Run meta-prompting loops (using pro models) to critique and refine.
  4. Validate: Test against a set of representative inputs and boundary cases.
  5. Iterate: Use DSPy optimizers to refine instruction logic.
  6. Deploy & Monitor: Version control the final prompt as code.

Key Patterns

  • Semantic Diversity: Select Few-Shot examples based on embedding-space diversity rather than arbitrary selection.
  • Negative Constraint Prioritization: Explicitly list what NOT to do, placing these at the beginning of the operational rules.
  • Structured Output First: Enforce JSON/Schema output early in the instruction stream to prevent preamble bloat.
  • Self-Correction Loops: Instruct the model to critique its own intermediate steps before generating the final output.

Quality Gates

  • Contract Adherence: Does the output strictly follow the schema?
  • Ambiguity Check: Can the prompt produce valid responses for empty or malformed input?
  • Few-Shot Quality: Are examples diverse, representative, and error-free?
  • Regression Testing: Does this version outperform the previous version on the golden test set?
  • Token Efficiency: Have unnecessary filler instructions been removed?

References

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

2d-games

무료

2D game development principles. Sprites, tilemaps, physics, camera.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VoDaiLocz/kilo-kit-mcp282026년 9월 13일 업데이트

3d-games

무료

3D game development principles. Rendering, shaders, physics, cameras.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VoDaiLocz/kilo-kit-mcp282026년 9월 13일 업데이트

aesthetic

무료

Create aesthetically beautiful interfaces following proven design principles. Use when building UI/UX, analyzing designs from inspiration sites, generating design images with ai-multimodal, implementing visual hierarchy and color theory, adding micro-interactions, or creating design documentation. Includes workflows for capturing and analyzing inspiration screenshots with chrome-devtools and ai-multimodal, iterative design image generation until aesthetic standards are met, and comprehensive design system guidance covering BEAUTIFUL (aesthetic principles), RIGHT (functionality/accessibility), SATISFYING (micro-interactions), and PEAK (storytelling) stages. Integrates with chrome-devtools, ai-multimodal, media-processing, ui-styling, and web-frameworks skills.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VoDaiLocz/kilo-kit-mcp282026년 9월 13일 업데이트

Use when implementing or managing persistent, hierarchical memory systems for AI agents. Covers cross-session state, fact supersession, and self-managed memory tools to enable long-term recall and adaptive agent behavior.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VoDaiLocz/kilo-kit-mcp282026년 9월 13일 업데이트

Use when monitoring, tracing, or debugging agentic workflows in production. Keywords: observability, tracing, OpenTelemetry, Langfuse, latency, token cost, loop detection, telemetry.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VoDaiLocz/kilo-kit-mcp282026년 9월 13일 업데이트

Use when building self-correcting retrieval systems for AI agents. Keywords: RAG, retrieval, Corrective RAG, Self-RAG, query decomposition, reranking, hallucination, grounding.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VoDaiLocz/kilo-kit-mcp282026년 9월 13일 업데이트

VoDaiLocz의 스킬 모두 보기

이 스킬의 문제 신고