prompt-chaining
Skill4 starsChanged 5 months agoApache-2.0View on GitHub
Use when implementing or refactoring multi-step LLM workflows where outputs from one step feed later steps; especially useful for extraction, normalisation, generation, code refinement, and report synthesis.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- flpbalada/fb-skillstheir own version, first seen Aug 3, 2026
- hajekim/agentic-design-patterns-extensiontheir own version, first seen Apr 1, 2026
- hajekim/agentic-design-patterns-skillstheir own version, first seen Apr 1, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- flpbalada/fb-skills★ 8same name
- hajekim/agentic-design-patterns-skills★ 4same name
- hajekim/agentic-design-patterns-extension★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository114 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- accessibility-wcagSkill
- agentic-ux-patternsSkill
- ai-model-governanceSkill
- api-design-and-lifecycleSkill
- apply-laws-of-aiSkill
- bdd-practiceSkill
- browser-testing-with-devtoolsSkill
- business-capability-modelingSkill
- business-information-concept-modelingSkill
- capability-maturity-assessmentSkill
- cdc-and-source-to-stream-ingestionSkill
- ci-cd-and-automationSkill
- cloud-platform-architectureSkill
- code-review-and-qualitySkill
- cognitive-bias-reviewSkill
- conceptual-data-modelingSkill
- context-engineeringSkill
- data-contract-designSkill
- data-governance-and-qualitySkill
- data-integration-and-interoperabilitySkill
- data-lifecycle-and-retention-managementSkill
- data-lineage-and-provenanceSkill
- data-product-dashboard-designSkill
- data-product-designSkill
- data-security-and-privacy-architectureSkill
- ddd-practiceSkill
- deprecation-and-migrationSkill
- design-system-practiceSkill
- documentation-and-adrsSkill
- dora-four-keysSkill
- dry-principleSkill
- eip-integration-validationSkill
- evaluation-and-monitoringSkill
- event-driven-architectureSkill
- event-governance-and-lineageSkill
- event-modelingSkill
- event-streaming-platform-designSkill
- exception-handling-and-recoverySkill
- finops-practiceSkill
- frontend-state-and-interaction-designSkill
- git-workflow-and-versioningSkill
- goal-setting-and-monitoringSkill
- guardrails-safety-patternsSkill
- human-in-the-loopSkill
- idea-refinementSkill
- incident-response-and-postmortemsSkill
- incremental-implementationSkill
- infrastructure-as-codeSkill
- integration-message-constructionSkill
- inter-agent-communication-a2aSkill
- kiss-principleSkill
- knowledge-graph-ragSkill
- knowledge-retrieval-ragSkill
- krag-evaluation-governanceSkill
- krag-ingestion-graph-constructionSkill
- krag-retrieval-answeringSkill
- krag-system-designSkill
- lakehouse-and-medallion-architectureSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 6 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use this skill when a single prompt or function is overloaded with multiple responsibilities.
- Distinctive: line 12
Do not use it for a trivial one-step task.
- Distinctive: line 22
Use JSON, XML, Pydantic, Zod or another schema mechanism for hand-offs.
- Distinctive: line 29
Prefer pure functions for deterministic pre/post-processing.
- Distinctive: line 30
Keep LLM prompts single-purpose.
- Distinctive: line 31
Use a named pipeline object or graph rather than ad hoc nested calls.
“Common” is measured: kept by at least 6 in 10 of the 3 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.
Files
Prompt Chaining
When to use
Use this skill when a single prompt or function is overloaded with multiple responsibilities. Apply it when the task has distinct stages, when intermediate outputs should be inspected, or when reliability depends on passing structured data between steps.
Do not use it for a trivial one-step task.
Objective
Decompose overloaded prompts into validated, single-purpose stages with testable hand-offs.
Procedure
- Identify each logically independent transformation.
- Define a narrow contract for each step: input schema, output schema, success criteria and error case.
- Use JSON, XML, Pydantic, Zod or another schema mechanism for hand-offs.
- Validate each intermediate output before passing it to the next step.
- Make every step independently testable.
- Persist or log intermediate artefacts where debugging or auditability matters.
Coding guidance
- Prefer pure functions for deterministic pre/post-processing.
- Keep LLM prompts single-purpose.
- Use a named pipeline object or graph rather than ad hoc nested calls.
- Fail fast on malformed intermediate outputs.
- Include unit tests for every stage and an integration test for the whole chain.
References
Verification
- Pipeline stages are named and documented.
- Each stage has a clear input/output contract.
- Structured output validation exists between stages.
- Tests cover at least one happy path and one malformed intermediate output.
- Logging makes it possible to identify which stage failed.
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
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.

