/prompt-architect:prompt-architectfrom prompt-architect
Turns a rough Turkish or English request into a structured, domain-aware expert prompt tuned to the model that will run it, and delivers the finished work when the request asks for a concrete deliverable. Detects the host (Claude Code or Codex) and active model, loads the matching Claude or OpenAI GPT profile, classifies the domain, drafts an English prompt and runs a quality-gate self-review. Use when the user wants to write, refine or upgrade a prompt, tune one for a specific model (Opus 5.5, Sonnet 5.5, Haiku 5.5, Fable 5.1, GPT-6.1 Sol, GPT-6 Astra, GPT-5.6 Terra, GPT-6 Luna), write instructions for a Claude or Codex agent, or get an expert strategy, plan or analysis, which it returns as finished work, not only a prompt. Triggers include prompt yaz, promptu iyileştir, expert prompta çevir, Opus 5.5 için prompt, Codex için prompt hazırla, strateji hazırla, domain analizi yap, refine my prompt, turn this into an expert prompt, write this for GPT-6.1 Sol.
Ships in prompt-architect. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Turns Turkish or English input into a domain-classified, model-aware, pattern-aware, quality-reviewed expert prompt, and optionally executes it.
The refined prompt is tuned to the target model, Claude or OpenAI. Opus 5.5 gets a scope block and no verification line; Sonnet 5.5 and Haiku 5.5 get completion and real-check lines; Fable 5.1 gets a light scaffold; Codex models get markdown sections with constraints, a done-when line and a check command. See references/models/_matrix.md. All paths below are relative to this skill's directory (the folder containing this SKILL.md, written <skill-dir> in commands); run scripts by that path, for example python3 <skill-dir>/scripts/detect_model.py.
profile_files by scripts/detect_model.py: one canon plus one profile. Read exactly those, never all profiles:
references/models/{opus-5-5,sonnet-5-5,haiku-5-5,fable-5-1}.md (legacy profiles in references/models/legacy/)references/models/openai/{gpt-sol,gpt-astra,gpt-terra,gpt-luna}.mdprompt_only vs prompt_and_execute.Templates:
assets/templates/domain-*.tmpl: six domain packs (strategy, engineering, marketing, legal, finance, hr).Scripts (local reads only; no network, cache or hooks):
--model "<name>" resolves an explicit target.--target-model <profile or model id>.The user's own instruction files come first. If the host loaded AGENTS.md (Codex) or CLAUDE.md (Claude Code), global or project, follow them; where they conflict with a rule below, they win. Otherwise the skill follows seven rules (details in references/working-rules.md):
Run before anything else; every later stage depends on it.
python3 <skill-dir>/scripts/detect_model.py --model "<name>".python3 <skill-dir>/scripts/detect_model.py →
{"host": "codex", "model": "gpt-6.1-sol", "effort": "high", "family": "openai", "profile": "gpt-sol", "profile_files": [...], "source": "session", "note": null}.
It checks the PROMPT_ARCHITECT_MODEL override, then the host from CODEX_THREAD_ID / CLAUDE_CODE_SESSION_ID (if both are set, the host with the most recently written session file wins).profile_files (relative to <skill-dir>): the matrix, one canon, one profile.opus-5-5. Codex → gpt-sol. Unknown host or a non-Claude, non-OpenAI target (Gemini, Llama…) → generic: the portable form, stating that no provider tuning was applied. Unknown newer Claude or GPT models get the current flagship or workhorse profile plus a note; repeat that note in the output.If the target differs from the session model (a Codex session writing for Claude, or the reverse), state both and build for the target. Facts marked unverified in a profile go into Assumptions / Uncertainty when they affect the prompt.
Effort matters too. When the effort is xhigh, max or ultra and the task is narrow, add a scope-containment block regardless of model. On Sonnet 5.5 and Haiku 5.5 at low/medium, also add the completion line (they can stop early). It never replaces a required scope block: Sonnet 5.5 always gets both.
low/medium, or the stop-and-report line (no unrequested review rounds or reviewer subagents) at xhigh/max; add a real-check line for code.<role> / <why> / <task> / <content> / <detailed_instructions> / <examples> / <scope_boundaries> / <output_format> / <tone_preference> / <reminders>). Fable targets use XML only with four or more distinct content types, and with a trimmed <reminders>.<why> is worse than none.assets/templates/domain-*.tmpl.AGENTS.md section (Codex) or a CLAUDE.md section (Claude Code) and say which.python3 <skill-dir>/scripts/validate_prompt.py --stdin --target-model <profile> on the draft.Self-Review: line. N/A gates are never counted as passed.prompt_and_execute mode)<short-slug>-output.<ext> and show only a short summary plus the path. Extensions: .md for strategy, plans, reports and prose; .ts / .py / .js / .cs etc. for code; .sql for queries; .json / .yaml for configs and schemas; .txt as a last resort.Infer the mode from natural language; see references/mode-inference.md.
| Signal | Mode |
|---|---|
| Imperative on a concrete deliverable: "strateji hazırla", "onboarding planı hazırla", "domain analizi yap", "draft the contract", "give me the plan" | prompt_and_execute: deliver the strategy or analysis itself, with the prompt shown above it |
| No mode signal (e.g. "prompt yaz", "refine my prompt", a bare topic) | prompt_only (default) |
Literal prompt_only, or "sadece prompt", "just the prompt", "prompt yaz yeter", "don't run it", "execute etme" | prompt_only |
Literal prompt_and_execute, or "çalıştır", "execute et", "tam çıktı ver", "sonucu da üret", "hem prompt hem sonuç", "run it", "and execute", "do it too", "generate the output too", "uygula" | prompt_and_execute |
| Mixed or unclear | prompt_only, noting the ambiguity under Assumptions / Uncertainty |
Always use this structure, with section labels in the user's language (Turkish or English):
**Target Model:** [model] ([explicit | detected · host: claude-code/codex · effort: X | host default | generic]) — profile: [stem] — files: [profile_files]
**Detected Domain:** [domain] (supporting: [if any])
**Complexity:** simple | moderate | complex
**Selected Patterns:** [subset of the 14 patterns]
**Model-Specific Adjustments:** [what was injected, omitted or trimmed for this target, e.g. "Done when + pytest command added; markdown sections (Codex)" or "verification line omitted (Opus 5.5)"]
**Rationale:** [1–2 evidence-based sentences]
**Assumptions / Uncertainty:** [whenever something was assumed, the mode was ambiguous, a profile fact is unverified, or the script returned a note]
**Refined English Prompt:**
[compact, XML or markdown body, per Stage 4]
**Self-Review:** P/A applicable gates passed (W warnings, K N/A) | failed: [gates]
**Final Output:** [only in prompt_and_execute mode]
[the deliverable inline, or a 2–4 sentence summary plus the saved file path]
<scratchpad>, "show your thinking", "explain your reasoning"). On current Claude models it can trigger the reasoning_extraction refusal; elsewhere it wastes tokens.temperature / top_p / top_k on Opus 4.7+, Opus 5+, Sonnet 5+ or Haiku 5.5 (400). Use Structured Outputs, a wrapper tag or an explicit output section.<reminders> block, trimmed hard on Fable targets.Adherence: line.assets/templates/domain-engineering.tmpl (opens in a new tab)assets/templates/domain-finance.tmpl (opens in a new tab)assets/templates/domain-hr.tmpl (opens in a new tab)assets/templates/domain-legal.tmpl (opens in a new tab)assets/templates/domain-marketing.tmpl (opens in a new tab)assets/templates/domain-strategy.tmpl (opens in a new tab)assets/templates/refined-prompt-compact.tmpl (opens in a new tab)assets/templates/refined-prompt-markdown.tmpl (opens in a new tab)assets/templates/refined-prompt-xml.tmpl (opens in a new tab)references/claude-prompting-patterns.md (opens in a new tab)references/domain-taxonomy.md (opens in a new tab)references/mode-inference.md (opens in a new tab)references/models/_generic.md (opens in a new tab)references/models/_matrix.md (opens in a new tab)references/models/_shared-canon.md (opens in a new tab)references/models/fable-5-1.md (opens in a new tab)references/models/haiku-5-5.md (opens in a new tab)references/models/legacy/fable-5.md (opens in a new tab)references/models/legacy/opus-4-8.md (opens in a new tab)references/models/legacy/opus-5.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
prompt-architect@skill-hub is listed by sametbrr/skill-hub — review the source before installing
npx claudepluginhub sametbrr/skill-hub --plugin prompt-architect