mcpField
W
writing-system-prompts

writing-system-prompts

github.com/bostonaholicAgent workflows268 installsUpdated today
Repository

About writing-system-prompts

A skill for creating and reviewing system prompts. It provides an ordered structure, concrete criteria and examples, then maps findings to a revised prompt.

Key features

  1. 01Organizes prompts into defined sections
  2. 02Sets testable completion and stop criteria
  3. 03Uses concrete examples to guide behavior
  4. 04Reviews section order and anti-patterns
  5. 05Delivers a revised prompt with assumptions

Use cases

  1. 01Drafting a system prompt from project context
  2. 02Reviewing an existing prompt for gaps
  3. 03Revising prompt structure and examples

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/bostonaholic/skills --skill writing-system-prompts

After installing, type/writing-system-promptsin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

agents/
openai.yaml
references/
review-anti-patterns.md
section-guidance.md

Details

From the project README

System Prompt Engineering

Structure beats cleverness. Concrete examples beat abstract instructions.

A system prompt is a contract with the model. Every line must change its behavior in a way someone could test; cut the rest, including anything the model or its harness already does by default.

Section order

Follow this order and skip sections that don't apply. Read section guidance for each section's rules and good and bad examples.

1. Identity and role
2. Mission and stop criteria
3. Communication style
4. Core workflow
5. Tool usage rules
6. Domain-specific rules
7. Safety and constraints
8. Edge cases and error handling
9. Examples
10. Runtime context (injected at run time)

What a good prompt has

  • A specific role, not "AI assistant".
  • Explicit completion criteria: when to stop, and when to ask instead.
  • Response length capped with a number ("fewer than 4 lines"), never an adjective ("be concise").
  • A retry limit with an escalation path for agents.
  • Constraints on security-critical and destructive actions, each with its reason, stated once.
  • 3-10 concrete examples showing length and tone, tool-call decisions, and edge cases, with at least one bad-to-good pair. Examples are the highest-return part of the prompt.
  • A runtime context section for values that change per session.

Write

  • Infer what the conversation and supplied files already answer.
  • Ask only the rest, in one message, and wait: what the AI does, who its user is, which tools it has, what "done" looks like, what must never happen, and the expected output format.
  • Deliver the prompt in a fenced block, followed by one line per assumption you made.

Review

Map the prompt to the section order, noting missing and misplaced sections. Flag each review anti-pattern present. Then revise. Unless the user asked for another format, report:

## Findings

| Section | Issue | Fix |
| ------- | ----- | --- |

## Revised prompt

```text
<the full revised prompt>
```

Comments

Markdown supported