agentleFS
JlosevJlosev/agent-skills/skills/prompt-engineer/SKILL.md

prompt-engineer

Skill1 starsChanged 3 months agoMITView on GitHub

Lint and review agent instruction files (SKILL.md, agent.md, CLAUDE.md, protocol) for executability. Triggers prompt-engineer, lint skill, review SKILL.md, Publication DoD, quality checklist, agent instructions review. Checks triggers, progressive disclosure, Hard Stop, DoD, deterministic script offload per quality-guide. Not for scaffolding a new skill from scratch, chat-prompt optimization, or model-specific prompt research.

45 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use secure-code-guardian, fullstack-guardian and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • JeffallanSkill

    secure-code-guardian

    Use when implementing authentication/authorization, securing user input, or preventing OWASP Top 10 vulnerabilities — including custom security implementations such as hashing passwords with bcrypt/argon2, sanitizing SQL queries with parameterized statements, configuring CORS/CSP headers, validating input with Zod, and setting up JWT tokens. Invoke for authentication, authorization, input validation, encryption, OWASP Top 10 prevention, secure session management, and security hardening. For pre-built OAuth/SSO integrations or standalone security audits, consider a more specialized skill.

    Also in 3 projects that use this

  • JeffallanSkill

    fullstack-guardian

    Builds security-focused full-stack web applications by implementing integrated frontend and backend components with layered security at every level. Covers the complete stack from database to UI, enforcing auth, input validation, output encoding, and parameterized queries across all layers. Use when implementing features across frontend and backend, building REST APIs with corresponding UI, connecting frontend components to backend endpoints, creating end-to-end data flows from database to UI, or implementing CRUD operations with UI forms. Distinct from frontend-only, backend-only, or API-only skills in that it simultaneously addresses all three perspectives—Frontend, Backend, and Security—within a single implementation workflow. Invoke for full-stack feature work, web app development, authenticated API routes with views, microservices, real-time features, monorepo architecture, or technology selection decisions.

    Also in 3 projects that use this

  • AutumnsGroveSkill

    api-designer

    Design and document RESTful and GraphQL APIs with OpenAPI/Swagger specifications, authentication patterns, versioning strategies, and best practices. Use for: (1) Creating API specifications, (2) Designing REST endpoints, (3) GraphQL schema design, (4) API authentication and authorization, (5) API versioning strategies, (6) Documentation generation

    Also in 5 projects that use this

  • +9 more from Jeffallan

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 40 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read references/quality-guide.md – publication DoD + quality criteria + type checklist + anti-patterns.

    line 53
  2. Distinctive:

    Read the target file.

    line 54
  3. Distinctive:

    If lint found ≥1 major on the quality criteria – propose 1 concrete improvement for prompt-engineer itself.

    line 100
  4. Distinctive:

    If invoked from a factory pipeline: run only as a Task from the orchestrator.

    line 130
  5. Distinctive:

    Do not change meaning; do not add new content

    line 133
  6. Distinctive:

    always-on short steps stay in the body.

    line 157
  7. Very specific:

    Use «Trigger phrases …» instead of «Triggers:» in description (avoid :)

    line 158

“Common” is measured: kept by at least 6 in 10 of the 40 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Prompt Engineer

Lint/review agent instruction files. Criteria live only in references/quality-guide.md (do not duplicate them here).

{SKILL_DIR} = directory of this SKILL.md.

Scope

In: SKILL.md, agent .md, CLAUDE.md, protocol
Out: runtime debug, strategy, scaffold from scratch, chat-prompt optimization, model-specific prompt research
Fallback: generic checklist + ask the type

Preconditions

  • Target file path from $ARGUMENTS. Нет пути → спроси в чат, не угадывай файл.
  • test -f "{SKILL_DIR}/references/quality-guide.md". Нет файла → стоп: «нет references/quality-guide.md».
  • test -f "{SKILL_DIR}/scripts/lint_metrics.sh". Нет файла → стоп: «нет scripts/lint_metrics.sh».
  • Если вызов из factory – только после validation checkpoint оркестратора.

Algorithm

Step 1: File and type

Path from $ARGUMENTS or ask.

SignalType
skills/ + name/descriptionSKILL.md
agents/ + name/toolsAgent
CLAUDE.mdCLAUDE.md
protocols/Protocol
elseGeneric

Step 2: Analyze

  1. Read references/quality-guide.md – publication DoD + quality criteria + type checklist + anti-patterns. For multi-step / AskQuestion skills also run Workflow Enforcement Patterns.
  2. Read the target file.
  3. For each criterion: check → severity (critical/major/minor) + a concrete fix (→).
  4. Determinism: rigid CLI sequences → suggest moving them to scripts/.
  5. Quality criteria (SKILL.md only): clarity, structure, self_containment, safety, preconditions, agent_agnostic, examples, self_improvement – table ✅/❌ + fix.

Metrics script:

"{SKILL_DIR}/scripts/lint_metrics.sh" <file>

Description metrics: character length, : check, trigger phrases, negative triggers – per DoD §Discovery.

Also: compression, anti-patterns table, token estimate (words×1.3), extraction (conditional ≥30 lines → references/).

missing_deps из скрипта → major: файл из references/, scripts/ или phases/ назван, но его нет. Оценщик Hub видит только тело SKILL.md, поэтому в теле остаётся сам шаг, в файл уходит длинная процедура.

Step 3: Report

## Prompt Engineer: [file]

**Type:** … | **Size:** ~N tok (~M lines) | **DoD:** Pass/Fail

### Critical / Major / Minor
- [loc]: [issue] → [exact fix text]

### DoD Checklist (SKILL.md)
| Frontmatter | Discovery | Body | Safety | Metrics | → ✅/❌ |

### Quality (SKILL.md)
| clarity | structure | self_containment | safety | preconditions |
| agent_agnostic | examples | self_improvement | → score band |

Score band: 0 critical + ≤2 major → likely 70–85; else likely <60.

### Anti-patterns | What is good | **Grade:** A/B/C/D
A=0 critical ≤1 major | B=0 critical ≤3 major | C=1+ critical

Step 4: Apply

Спроси «Apply? (all / selected / no)». Если нет AskQuestion, тот же вопрос текстом в чат. Правки – точный текст замены.

Step 5: Post-run

If lint found ≥1 major on the quality criteria – propose 1 concrete improvement for prompt-engineer itself. Format: «Gardener: …».

Example

In: «lint SKILL.md – wall of text, path: .agents/skills/foo/SKILL.md»

## Prompt Engineer: foo/SKILL.md
**Type:** SKILL.md | **Size:** ~420 tok (~180 lines) | **DoD:** Fail
### Major
- description: internals instead of triggers → «Use when… Triggers lint, review prompt…»
- body: no ## Example → add a section with input/result
### Quality
| clarity ❌ | examples ❌ | preconditions ❌ | … |
**Grade:** C
Apply fixes? (all / selected / no)

In: «lint agent .agents/agents/cf-publisher.md»

## Prompt Engineer: cf-publisher.md
**Type:** Agent | **Size:** ~200 tok | **DoD:** Fail
### Major
- description: нет when to delegate → «Use when the parent must publish a Confluence page»
**Grade:** C

Hard Stop Rules

  • If invoked from a factory pipeline: run only as a Task from the orchestrator; the parent does not lint inline.
  • Report before edits
  • CLAUDE.md – warn before apply (project-shared)
  • Do not change meaning; do not add new content
  • : in description – critical

Definition of Done

  • Report with severity + DoD checklist + quality table (SKILL.md) + grade shown
  • User answered the apply prompt
  • Applied fixes = exact text replacements
  • Post-run Gardener note if ≥1 major on quality criteria

Check commands

"{SKILL_DIR}/scripts/lint_metrics.sh" <file>
grep -A5 '^description:' <file>   # no ':' in value lines

Gotchas

  • A baseline without the guide finds the obvious; value = DoD + quality table + anti-patterns + fix texts
  • External quality_score from an evaluator is not replaced by the score band
  • preconditions ≠ Hard Stop Rules
  • agent_agnostic minor does not block publication
  • description >400 major; : critical
  • always-on short steps stay in the body; an extracted step is read at entry, not all phases up front
  • Use «Trigger phrases …» instead of «Triggers:» in description (avoid :)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.