Agent skill

Prompt Writer

by hAcKlyc in hAcKlyc/MyAgents

Methodology for writing or improving prompts and system prompts that drive any LLM.

AGPL-3.0Auto-check passedAI & LLM Engineering

Install Prompt Writer

skills CLI
$ npx skills add hAcKlyc/MyAgents --skill prompt-writer -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install hAcKlyc/MyAgents prompt-writer --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/hAcKlyc/MyAgents.git skills-src && mkdir -p .claude/skills && cp -r skills-src/bundled-skills/prompt-writer .claude/skills/prompt-writer && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
prompt-writer
GitHub stars
918
Token cost
~2.2k tokens
SKILL.md length
1,257 words
Files
1
Skills in repo
15
Repo updated
First seen
Licence
AGPL-3.0

At a glance

Methodology for writing or improving prompts and system prompts that drive any LLM.

  • Revising a prompt for a model task — grouping
  • SKILL.md covers First, set the degrees of…, Find the right altitude, Principles for both modes and Examples do more than rules, plus 6 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Agent instructions

What it does

Prompt Writer is an agent skill from hAcKlyc/MyAgents. Methodology for writing or improving prompts and system prompts that drive any LLM. Use when authoring or revising a prompt for a model task — grouping, classification, extraction, generation, copywriting, labeling, agent instructions, prompt templates, skill instructions — to decide how much to constrain the model based on the task type (open-ended vs single-correct-answer) and write the most fitting instructions. Triggers: "write a prompt", "help me write or improve a prompt", "how should I change this prompt"…

Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in AI & LLM Engineering, covering Prompt engineering, Copywriting and Agent instruction files. The repository describes itself as: MyAgents - 优雅、易用的 Agent 桌面端 ,一站式 Agent 工作台与任务中心. The licence is AGPL-3.0.

When your agent uses it

  • Revising a prompt for a model task — grouping
  • Agent instructions
  • Prompt templates

Example prompts

  • “write a prompt”
  • “help me write or improve a prompt”
  • “how should I change this prompt”
  • “/prompt-writer”

What it can do on your machine

Read from SKILL.md and the folder at commit 71fc0ff. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Prompt Writer loads about 2.2k tokens when it runs. Until then it costs about 191 tokens; SKILL.md has 1,257 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~191
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from hAcKlyc/MyAgents at commit 71fc0ff, republished under its AGPL-3.0 licence (© hAcKlyc). 1,257 words, ~2,205 tokens.

Download SKILL.mdSave it as .claude/skills/prompt-writer/SKILL.md (or your agent's skills folder).
name
prompt-writer
description
Methodology for writing or improving prompts and system prompts that drive any LLM. Use when authoring or revising a prompt for a model task — grouping, classification, extraction, generation, copywriting, labeling, agent instructions, prompt templates, skill instructions — to decide how much to constrain the model based on the task type (open-ended vs single-correct-answer) and write the most fitting instructions. Triggers: "write a prompt", "help me write or improve a prompt", "how should I change this prompt", "this prompt isn't working", "write instructions for the model", "prompt-writer". Not for: answering the user's question directly, or writing articles and documents meant for human readers (those are not prompts that drive a model).
metadata.author
MyAgents
metadata.version
20260707

Prompt Writer

A prompt's job is not to spell out every rule. The context window is a public good, so aim for the smallest set of high-signal tokens that maximize the likelihood of the output you want. The more rules you write, the more you box the output into the range of things you happened to think of. Assume the model is already very smart and only add context it doesn't already have — challenge every line: does this paragraph justify its token cost, or can I assume the model knows this?

First, set the degrees of freedom

The most important decision is how much latitude to give the model: match the level of specificity to the task's fragility and variability. Picture the model exploring a path. On a narrow bridge with cliffs on both sides there is only one safe way forward, so give exact instructions and specific guardrails — this is low freedom, and it fits schemas, data formats, migrations, API calls, anything where a small error makes the output unusable. In an open field with no hazards many paths lead to success, so give general direction and trust the model to find the route — this is high freedom, and it fits grouping, generation, copywriting, subjective judgment, anything where several outputs are valid and quality is a judgment call.

Get this wrong and everything downstream is wrong. Write an open-field task with narrow-bridge language and the model collapses to the most generic result; write a narrow-bridge task with open-field language and it improvises where it must not.

High freedom (open field)Low freedom (narrow bridge)
WhenSeveral valid outputs; quality is a judgment callOne correct output; small errors break it
ExamplesGrouping, generation, copywriting, subjective ratingSchemas, data formats, migrations, API calls
HowGoal + role + canonical examplesExact steps + strict template
Trade-offTrust the model's judgment, fewer rulesConstrain with rules, leave no room to improvise

Most real prompts mix both modes. An agent prompt leaves the approach open but locks the tool-call format; a generation task gives free rein on content but demands strict JSON out. Zone the prompt instead of picking one mode for the whole thing: narrow-bridge treatment for formats, schemas, and tool calls; open-field treatment for content and judgment. And calibrate to the model that will run the prompt — the weaker the model, the more everything shifts toward the narrow bridge.

Find the right altitude

Within either mode, aim for the right altitude: specific enough to guide behavior, flexible enough to leave the model strong heuristics. Too low is hardcoding brittle logic — "if the title contains a colon, split on it and capitalize the second half." Too high is vague guidance with no concrete signal — "write good titles." The altitude that works sits between the two: "make titles specific and punchy over comprehensive; here is a weak one and a strong one."

Principles for both modes

  • Think of the model as a brilliant but new employee who lacks context on your norms and workflows. Tell it what you want and why — it is smart enough to generalize from the explanation.
  • Prefer general instructions over prescriptive steps. The model's reasoning frequently exceeds what a human would prescribe, so a clear goal often beats a hand-written step-by-step plan.
  • Tell the model what to do, not what not to do. And match your prompt's style to the output you want — the formatting you use tends to come back in the response.
  • The colleague test: show the prompt to someone with minimal context and ask them to follow it. If they would be confused, the model will be too.

Examples do more than rules

Examples are one of the most reliable ways to steer output format, tone, and structure — they are the pictures worth a thousand words, and they convey the desired style and level of detail more clearly than descriptions alone. How many depends on what you are steering: to pin down a specific output shape or format, give three to five diverse, canonical examples; to convey a taste or a quality bar on an open task, one or two strong weak-output-versus-strong-output pairs is enough, and more would over-anchor the model. Either way, a good example usually beats ten rules, and it won't cap the model the way rules do.

Show full SKILL.md (545 more words)Show less

High-freedom tasks

State the role and the goal in one line and let the model generalize. Give direction plus one or two strong weak-vs-strong example pairs, not a rulebook. Keep to a couple of canonical examples and a single sensible default with an escape hatch, rather than piling on edge cases or options. For format, say "here is a sensible default, but use your best judgment" rather than fixing every field. Go easy on emphasis: on current models, what used to need "CRITICAL: You MUST..." now works better as a plain "Use this when...", because heavy emphasis makes them overtrigger and lose range.

Low-freedom tasks

Give exact steps and a strict template — "always use this exact structure" — and add a script when the operation must be deterministic. Put the critical constraints first; emphasis markers are appropriate here. Build in verification: run the validator, fix errors, repeat. With no execution loop — a bare single-shot prompt — have the model emit its answer, then re-read it against the schema and correct it before finalizing. For long inputs, have the model quote the relevant parts first to ground its work.

Review before you ship

Switch to an auditing frame and go line by line. Is it an open field or a narrow bridge, and does the specificity match? Is this the smallest set of high-signal tokens, or did I write things the model already knows? Can any rule be replaced by an example? Then approach it scientifically and test on diverse inputs, including one that flatters the prompt and one that exposes it — testing a single good case is not testing.

When a prompt isn't working

Get failing examples in hand before touching anything — a fix without a failure to test against is a guess. Then read the failure against the freedom axis, because most bad outputs are one of three misfits. Output collapsed to the generic average: an open-field task strangled by narrow-bridge rules — delete rules and show a strong example instead. Model improvising where it must not: an open-field prompt on a narrow-bridge task — tighten the template and build in verification. Right direction but mediocre: the model lacks context you have, or a single example is over-anchoring it — add the missing why, or diversify the examples. Re-test on the inputs that failed, plus one that used to work.

Worked example: rules vs examples on the same task

Task: write three titles for an article on remote teams.

  • Rules-driven — told to keep titles short, accurate, free of clickbait, and on-topic — the model returns the safe skeleton: "A Guide to Remote Team Productivity." Correct, generic, forgettable; the title anyone would write.
  • Example-driven — shown one weak title ("Tips for Remote Work") next to one strong one ("Your 9am standup is killing your team") — the model picks up the angle and proposes "Why your remote team goes quiet after lunch." Specific, with a hook a reader actually clicks.

The difference is the prompt, not the model. A rule list describes a generic average, and the model gives you exactly that; one strong weak-vs-strong pair shows the bar and lets the model's judgment reach it.

Source material

  • Effective context engineering for AI agents — anthropic.com/engineering/effective-context-engineering-for-ai-agents
  • Prompting best practices (latest models) — platform.claude.com/docs/en/docs/build-with-claude/prompt-engineering/claude-4-best-practices
  • Skill authoring best practices — platform.claude.com/docs/en/agents-and-tools/agent-skills/best-practices
  • Writing effective tools for AI agents — anthropic.com/engineering/writing-tools-for-agents

© hAcKlyc, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in bundled-skills/prompt-writer of hAcKlyc/MyAgents.

Open the folder on GitHubat commit 71fc0ff

Compare with similar skills

Prompt Writer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Prompt Writer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Prompt Writer this skillhAcKlyc/MyAgents918—~2.2kAutomated safety check: PassAGPL-3.0
Asd Ste100danyuchn/asd-ste100-skill4k—~4.1kAutomated safety check: PassMIT
Create Simple Promptpnp/copilot-prompts892—~2.6kAutomated safety check: PassMIT
Create System Promptpnp/copilot-prompts892—~3.1kAutomated safety check: PassMIT
Prompt Regressionagentscope-ai/OpenJudge868—~2.8kAutomated safety check: PassApache-2.0
Agent Prompt Engineeringagentailor/fullstack-langgraph-nextjs-agent132—~3.6kAutomated safety check: PassMIT

Similar skills

  • Asd Ste100

    danyuchn/asd-ste100-skill

    A skill your agent uses when English text must be parsed without a human to resolve ambiguity — tool descriptions, error messages, inter-agent instructions, system prompts, status reports — and…

    4k GitHub stars~4.1k tokensUpdated 3 days ago
    Writing & ContentAuto-check passed
  • Create Simple Prompt

    pnp/copilot-prompts

    This skill should be used when the user asks to "create a new prompt sample", "add a new prompt sample", "scaffold a new prompt sample", "create a prompt contribution", "add a prompt", or needs to…

    892 GitHub stars~2.6k tokensUpdated 2 days ago
    AI & LLM EngineeringAuto-check passed
  • Create System Prompt

    pnp/copilot-prompts

    This skill should be used when the user asks to "create an agent instruction", "add agent instructions", "scaffold an agent sample", "create a system prompt sample", "add a system prompt", "create a…

    892 GitHub stars~3.1k tokensUpdated 2 days ago
    AI & LLM EngineeringAuto-check passed
  • Prompt Regression

    agentscope-ai/OpenJudge

    A skill your agent uses when the user has changed a prompt (system prompt, RAG template, agent instruction, etc.) and wants to know whether the candidate is better or worse than the baseline.

    868 GitHub stars~2.8k tokensUpdated 26 days ago
    AI & LLM EngineeringAuto-check passed
  • Agent Prompt Engineering

    agentailor/fullstack-langgraph-nextjs-agent

    Comprehensive guide for designing, refining, and auditing system prompts for autonomous AI agents based on Anthropic's production practices.

    132 GitHub stars~3.6k tokensUpdated 1 mo ago
    AI & LLM EngineeringAuto-check passed
  • Context Audit

    undefined-ui/second-brain-os

    Audit an agent's context layout against the four places: system prompt, tools, history, tail.

    1k GitHub stars~802 tokensUpdated today
    AI & LLM EngineeringAuto-check passed

More from hAcKlyc/MyAgents

All 15 skills in this repo
  • Hatch Pet

    hAcKlyc/MyAgents

    Create, repair, validate, visually QA, and package MyAgents/Codex-compatible animated pets and pet spritesheets from character art, generated images, company or prospect brand cues, or visual…

    918 GitHub starsUsed in 2 repos~9.5k tokens
    Auto-check passed
  • Download Anything

    hAcKlyc/MyAgents

    Find and download virtually any digital resource from the internet — ebooks, academic papers, movies, TV shows, music, software, images, fonts, courses, and more.

    918 GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • Myagents Memory Gardener

    hAcKlyc/MyAgents

    仅当系统或用户明确指定完整名称 myagents-memory-gardener 时使用; 不要根据任务语义或相似表述自行触发。

    918 GitHub stars~425 tokensUpdated today
    Auto-check passed
  • Myagents Memory Molt

    hAcKlyc/MyAgents

    仅当系统或用户明确指定完整名称 myagents-memory-molt 时使用; 不要根据任务语义或相似表述自行触发。

    918 GitHub stars~546 tokensUpdated today
    Auto-check passed
  • Support

    hAcKlyc/MyAgents

    MyAgents 本地问题诊断、恢复与反馈升级流程。用户描述报错、崩溃、无响应、配置后仍不可用、状态或结果不符合预期、 Task/Goal/Channel/Provider/Runtime/MCP/Plugin/附件/Agent 网络/协作空间等功能异常,或者前端“小助理诊断/问题反馈”注入诊断上下文时使用。

    918 GitHub stars~1.9k tokensUpdated today
    Auto-check passed
  • Myagents Task Automation

    hAcKlyc/MyAgents

    让 Agent 建立 MyAgents Task 的完整产品心智模型,并创建、验证和治理需要持久追踪、独立 Session 或未来触发的工作:理解 Task 与立即执行/Record/Goal 的边界,以及 once/scheduled/recurring、Session routing、结束条件和 command Detector。用户提到创建…

    918 GitHub stars~1.9k tokensUpdated today
    Auto-check passed

Questions about Prompt Writer

What does Prompt Writer do?

Methodology for writing or improving prompts and system prompts that drive any LLM. Prompt Writer is an agent skill from hAcKlyc/MyAgents. Methodology for writing or improving prompts and system prompts that drive any LLM.

When should I use Prompt Writer?

Prompt Writer fits situations like: revising a prompt for a model task — grouping; agent instructions; prompt templates.

How do I install Prompt Writer in Claude Code?

Run `npx skills add hAcKlyc/MyAgents --skill prompt-writer -a claude-code`. Or copy the skill folder (bundled-skills/prompt-writer in hAcKlyc/MyAgents) into .claude/skills/prompt-writer in your project. Claude Code loads it when a task matches its description.

How do I install Prompt Writer in Codex?

Run `npx skills add hAcKlyc/MyAgents --skill prompt-writer -a codex`. Or copy the skill folder (bundled-skills/prompt-writer in hAcKlyc/MyAgents) into .agents/skills/prompt-writer in your project. Codex loads it when a task matches its description.

Can I use Prompt Writer in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add hAcKlyc/MyAgents --skill prompt-writer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/prompt-writer, .gemini/skills/prompt-writer, .github/skills/prompt-writer and .opencode/skills/prompt-writer in your project.

What does Prompt Writer need to run?

SKILL.md names no scripts, command-line tools or credentials: Prompt Writer is instructions for the agent only.

Does Prompt Writer access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Prompt Writer safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Prompt Writer use?

Prompt Writer is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Prompt Writer use?

About 2.2k tokens (SKILL.md is roughly 8.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Prompt Writer?

Skills that share tags, products or a category with Prompt Writer: Asd Ste100 (danyuchn/asd-ste100-skill, 4k stars), Create Simple Prompt (pnp/copilot-prompts, 892 stars), Create System Prompt (pnp/copilot-prompts, 892 stars) and Prompt Regression (agentscope-ai/OpenJudge, 868 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Prompt Writer?

hAcKlyc (a GitHub user) maintains it in hAcKlyc/MyAgents, which has 918 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on October 7, 2026.

Source: hAcKlyc/MyAgents on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.