prompt-writing

Generate prompts for AI coding agents using the CLEAR framework.

1|Updated Jul 22, 2025
One-click install
npx skills add https://github.com/Danik911/thesis_project --skill prompt-writing-danik911
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prompt-writing
Source: https://github.com/Danik911/thesis_project/tree/main/.claude/skills/prompt-writing
Command: npx skills add https://github.com/Danik911/thesis_project --skill prompt-writing-danik911

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Creates effective prompts for AI coding agents and subagent delegation, ensuring complete context, explicit constraints, and deterministic outputs for complex workflows.

Core Features & Use Cases

  • CLEAR framework: Context, Limitations, Expectations, Actions, Resources embedded in prompts.
  • Subagent prompts: Guides delegation for Task tools and multi-step workflows.
  • System prompt design: Helps engineers craft system prompts and agent instructions with proven templates.

Quick Start

Write a system prompt for delegating a 3-step data-processing task to two subagents with explicit success criteria.

Frequently Asked Questions about prompt-writing

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

FAQPage Schema
How do I write effective prompts for delegating tasks to AI agents?

Effective prompts for AI delegation embed the CLEAR framework: Context (background and constraints), Limitations (what the agent cannot do), Expectations (success criteria), Actions (specific steps), and Resources (available tools). Structure prompts with explicit constraints, deterministic output formats, and context sufficient for the agent to complete multi-step workflows independently.

What's the CLEAR framework and why does it matter for system prompts?

The CLEAR framework—Context, Limitations, Expectations, Actions, Resources—is a structured approach to prompt design that ensures AI agents receive complete operational guidance. It eliminates ambiguity in task execution, enforces consistent output formats, and enables reliable multi-step workflow automation across engineering, testing, and operational scenarios.

How do I create prompts for multi-step workflows with multiple subagents?

Design subagent prompts by specifying task dependencies, success criteria for each step, context-transfer patterns between agents, and required output formats. Use templates that enforce explicit handoffs, define what information each subagent receives and produces, and include validation checkpoints to ensure deterministic results across the entire workflow.

Can I use prompt templates to standardize agent instructions across projects?

Yes. Standardized prompt templates enforce consistent context-transfer patterns, output formats, and constraint specification across projects. Templates with delivery guidance reduce iteration time, minimize ambiguity in agent behavior, and make complex workflows reproducible and maintainable.

What should I include in a system prompt to avoid ambiguous agent behavior?

Include explicit resource constraints, prohibited actions, expected output format with examples, success criteria, and contextual boundaries. Specify what the agent cannot do as clearly as what it should do, provide concrete examples of desired outputs, and define failure modes so the agent can self-validate or escalate appropriately.

How do I structure prompts for Task tool delegation in automation workflows?

Structure delegation prompts with Context (what the Task inherits), Actions (discrete steps the Task executes), Expectations (measurable success criteria), Limitations (scope boundaries), and required Resources (tools, data sources, permissions). This ensures Task tools execute deterministically and produce outputs suitable for downstream processing or notification.