agent-prompt-engineering

Design and harden prompts and workflow rules for predictable agent behavior.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/merceralex397-collab/Scafforge --skill agent-prompt-engineering
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-prompt-engineering
Source: https://github.com/merceralex397-collab/Scafforge/tree/main/skills/agent-prompt-engineering
Command: npx skills add https://github.com/merceralex397-collab/Scafforge --skill agent-prompt-engineering

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill helps teams craft and harden prompts, commands, and workflow rules to prevent doom loops, ambiguous delegation, and prompt-injection risks when coordinating repo-local agents across models.

Core Features & Use Cases

  • Prompt contracts and one-legal-next-move enforcement to reduce model ambiguity.
  • Model-specific hardening using package references and anti-pattern guidance to improve reliability across agents.
  • Governance and provenance through explicit artifact paths, staged verification, and proof before transitions.

Quick Start

Harden the repository's agent prompts by applying model-specific contracts and anti-patterns to ensure a single legal next move and a clear blocker path.

Frequently Asked Questions about agent-prompt-engineering

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I harden agent prompts to prevent doom loops and ambiguous delegation?

Harden agent prompts by applying explicit prompt contracts, enforcing one legal next move, and defining a clear blocker path to ensure safe, predictable behavior across models.

What is the best way to coordinate repo-local agents across different model types?

Coordinate repo-local agents by applying model-specific hardening rules and anti-pattern guidance to prompts, tools, and tickets in both greenfield and repair scenarios.

How do prompt contracts prevent prompt-injection risks when using autonomous agents?

Prompt contracts mitigate prompt-injection risks by exposing only one legal next move, requiring explicit artifact paths, and enforcing staged verification with proof before transitions.

Does agent prompt hardening work for both greenfield development and repository repair tasks?

Yes, agent prompt hardening applies to repo-local agents coordinating prompts, tools, and tickets across both greenfield and repair scenarios, adapting to various model types and risk profiles.

Why does my autonomous agent get stuck in ambiguous workflow states?

Agents get stuck in ambiguous workflow states due to a lack of prompt contracts; enforcing a single legal next move and a clear blocker path reduces model ambiguity and prevents doom loops.

When should I use model-specific hardening rules for agent workflows?

Use model-specific hardening rules when coordinating repo-local agents across different model types, applying package references and anti-pattern guidance to improve reliability and predictability.