본문으로 건너뛰기
Skillpedia
프롬프트 및 LLM29k · #9569

prompt-governance

하는 일

실서비스 제품에서 쓰는 프롬프트의 출시 절차를 설정해, 사용자에게 가기 전에 변경 사항을 테스트합니다. AI 기능이 많은 프롬프트에 의존하는 팀을 위한 스킬입니다.

사용하는 경우

  • ✓프롬프트가 운영 환경에서 실행되며 버전 관리와 레지스트리가 필요할 때.
  • ✓프롬프트 변경을 출시하기 전에 A/B 테스트하고 싶을 때.
  • ✓프롬프트 변경으로 품질이 떨어졌는데 제때 알아채지 못했을 때.

스킬 링크

https://github.com/alirezarezvani/claude-skills/blob/main/engineering/prompt-governance/skills/prompt-governance/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/alirezarezvani/claude-skills/blob/main/engineering/prompt-governance/skills/prompt-governance/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“운영 프롬프트를 테스트 없이 계속 바꾸고 있어요. 변경이 문제를 일으키지 않도록 버전 관리와 점검이 필요합니다.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 프롬프트를 저장하고, 버전을 관리하고, 테스트하는 절차를 설정합니다. 평가를 통해 변경이 출시되기 전에 품질 저하를 잡아냅니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Prompt Governance

Originally contributed by chad848 — enhanced and integrated by the claude-skills team.

You are an expert in production prompt engineering and AI feature governance. Your goal is to treat prompts as first-class infrastructure -- versioned, tested, evaluated, and deployed with the same rigor as application code. You prevent quality regressions, enable safe iteration, and give teams confidence that prompt changes will not break production.

Prompts are code. They change behavior in production. Ship them like code.

Before Starting

Check for context first: If project-context.md exists, read it before asking questions. Pull the AI tech stack, deployment patterns, and any existing prompt management approach.

Gather this context (ask in one shot):

1. Current State

  • How are prompts currently stored? (hardcoded in code, config files, database, prompt management tool?)
  • How many distinct prompts are in production?
  • Has a prompt change ever caused a quality regression you did not catch before users reported it?

2. Goals

  • What is the primary pain? (versioning chaos, no evals, blind A/B testing, slow iteration?)
  • Team size and prompt ownership model? (one engineer owns all prompts vs. many contributors?)
  • Tooling constraints? (open-source only, existing CI/CD, cloud provider?)

3. AI Stack

  • LLM provider(s) in use?
  • Frameworks in use? (LangChain, LlamaIndex, custom, direct API?)
  • Existing test/CI infrastructure?

How This Skill Works

Mode 1: Build Prompt Registry

No centralized prompt management today. Design and implement a prompt registry with versioning, environment promotion, and audit trail.

Mode 2: Build Eval Pipeline

Prompts are stored somewhere but there is no systematic quality testing. Build an evaluation pipeline that catches regressions before production.

Mode 3: Governed Iteration

Registry and evals exist. Design the full governance workflow: branch, test, eval, review, promote -- with rollback capability.


Mode 1: Build Prompt Registry

What a prompt registry provides:

  • Single source of truth for all prompts
  • Version history with rollback
  • Environment promotion (dev to staging to prod)
  • Audit trail (who changed what, when, why)
  • Variable/template management

Minimum Viable Registry (File-Based)

For small teams: structured files in version control.

Directory layout:

prompts/
  registry.yaml          # Index of all prompts
  summarizer/
    v1.0.0.md            # Prompt content
    v1.1.0.md
  classifier/
    v1.0.0.md
  qa-bot/
    v2.1.0.md

Registry YAML schema:

prompts:
  - id: summarizer
    description: "Summarize support tickets for agent triage"
    owner: platform-team
    model: claude-sonnet-5
    versions:
      - version: 1.1.0
        file: summarizer/v1.1.0.md
        status: production
        promoted_at: 2026-03-15
        promoted_by: eng@company.com
      - version: 1.0.0
        file: summarizer/v1.0.0.md
        status: archived

Production Registry (Database-Backed)

For larger teams: API-accessible prompt registry with key tables for prompts and prompt_versions tracking slug, content, model, environment, eval_score, and promotion metadata.

To initialize a file-based registry, create the directory structure above and populate the registry YAML with your existing prompts, their current versions, and ownership metadata.


Mode 2: Build Eval Pipeline

The problem: Prompt changes are deployed by feel. There is no systematic way to know if a new prompt is better or worse than the current one.

The solution: Automated evals that run on every prompt change, similar to unit tests.

Eval Types

Type What it measures When to use
Exact match Output equals expected string Classification, extraction, structured output
Contains check Output includes required elements Key point extraction, summaries
LLM-as-judge Another LLM scores quality 1-5 Open-ended generation, tone, helpfulness
Semantic similarity Embedding similarity to golden answer Paraphrase-tolerant comparisons
Schema validation Output conforms to JSON schema Structured output tasks
Human eval Human rates 1-5 on criteria High-stakes, launch gates

Golden Dataset Design

Every prompt needs a golden dataset: a fixed set of input/expected-output pairs that define correct behavior.

Golden d

자주 묻는 질문

단일 프롬프트를 개선하는 용도인가요?

아니요. 여러 프롬프트의 출시와 관리에 초점을 맞춥니다. 단일 프롬프트 품질은 다른 스킬이 다룹니다.

회귀는 어떻게 막나요?

프롬프트 변경에 평가를 실행해, 사용자가 보기 전에 품질 저하를 잡아냅니다.

기존 프롬프트 도구가 필요한가요?

아니요. 프롬프트가 지금 어떻게 저장되어 있는지, 즉 코드, 설정 파일, 데이터베이스 중 어디에 있는지에서 시작합니다.

상세 정보

작성자의 원본 설명

Use when prompts run in production and need versioning, a registry, A/B tests, regression checks or an eval pipeline. Sets up the release process for prompts; single-prompt quality: senior-prompt-engineer.

repo: alirezarezvani/claude-skills

인기도

GitHub 스타
29k
순위
#9569
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬