Project Development

Project Development

Guides project-level decisions for LLM systems: whether an LLM fits, pipeline shape, cost estimation, single versus multi-agent, and structured output design.

Skill files4 files

references/

scripts/

SKILL.md305 lines
1
---
2
name: project-development
3
description: "This skill should be used for project-level decisions about LLM-powered systems: whether an LLM is the right primitive for the task at hand, the shape of a multi-stage batch or agent pipeline, token and cost estimation, choosing between single-agent and multi-agent at the project level, structured output design for downstream parsing, and structuring agent-assisted iteration. Use this when the unit of work is a whole project or a multi-stage pipeline. Route individual tool design to tool-design and individual skill-loading or context-budget tactics to context-optimization."
4
---
5
6
# Project Development Methodology
7
8
This skill covers the principles for identifying tasks suited to LLM processing, designing effective project architectures, and iterating rapidly using agent-assisted development. The methodology applies whether building a batch processing pipeline, a multi-agent research system, or an interactive agent application.
9
10
The unit of work for this skill is the whole project or a multi-stage pipeline. Individual tool design (descriptions, schemas, error messages) belongs to `tool-design`. Per-skill activation routing belongs to the corresponding skill plus the corpus index. This skill owns the project-level questions: should you build this with an LLM at all, what shape should the pipeline take, what does it cost, how should it be iterated.
11
12
## When to Activate
13
14
Activate this skill when the unit of work is a whole project or pipeline:
15
16
- Deciding whether an LLM is the right primitive for a task at all (task-model fit before any code).
17
- Shaping a multi-stage batch or agent pipeline (acquire / prepare / process / parse / render).
18
- Estimating tokens, dollar cost, and timelines for an LLM-heavy project.
19
- Choosing between single-agent and multi-agent at the project level.
20
- Structuring agent-assisted iteration (where the agent helps build the project itself).
21
- Designing structured output at the pipeline contract level (cross-stage handoff format).
22
23
Do not activate this skill for adjacent work owned by other skills:
24
25
- Per-tool description, schema, naming, response format, error message: `tool-design`.
26
- Per-trajectory token-efficiency tactics (masking, partitioning, caching): `context-optimization`.
27
- Deciding to split work across sub-agents at the agent topology level: `multi-agent-patterns`.
28
- Designing the autonomous control loop (locked metrics, novelty gates, human approval boundaries): `harness-engineering`.
29
30
## Core Concepts
31
32
### Task-Model Fit Recognition
33
34
Evaluate task-model fit before writing any code, because building automation on a fundamentally mismatched task wastes days of effort. Run every proposed task through these two tables to decide proceed-or-stop.
35
36
**Proceed when the task has these characteristics:**
37
38
| Characteristic | Rationale |
39
|----------------|-----------|
40
| Synthesis across sources | LLMs combine information from multiple inputs better than rule-based alternatives |
41
| Subjective judgment with rubrics | Grading, evaluation, and classification with criteria map naturally to language reasoning |
42
| Natural language output | When the goal is human-readable text, LLMs deliver it natively |
43
| Error tolerance | Individual failures do not break the overall system, so LLM non-determinism is acceptable |
44
| Batch processing | No conversational state required between items, which keeps context clean |
45
| Domain knowledge in training | The model already has relevant context, reducing prompt engineering overhead |
46
47
**Stop when the task has these characteristics:**
48
49
| Characteristic | Rationale |
50
|----------------|-----------|
51
| Precise computation | Math, counting, and exact algorithms are unreliable in language models |
52
| Real-time requirements | LLM latency is too high for sub-second responses |
53
| Perfect accuracy requirements | Hallucination risk makes 100% accuracy impossible |
54
| Proprietary data dependence | The model lacks necessary context and cannot acquire it from prompts alone |
55
| Sequential dependencies | Each step depends heavily on the previous result, compounding errors |
56
| Deterministic output requirements | Same input must produce identical output, which LLMs cannot guarantee |
57
58
### The Manual Prototype Step
59
60
Always validate task-model fit with a manual test before investing in automation. Copy one representative input into the model interface, evaluate the output quality, and use the result to answer these questions:
61
62
- Does the model have the knowledge required for this task?
63
- Can the model produce output in the format needed?
64
- What level of quality should be expected at scale?
65
- Are there obvious failure modes to address?
66
67
Do this because a failed manual prototype predicts a failed automated system, while a successful one provides both a quality baseline and a prompt-design template. The test takes minutes and prevents hours of wasted development.
68
69
### Pipeline Architecture
70
71
Structure LLM projects as staged pipelines because separation of deterministic and non-deterministic stages enables fast iteration and cost control. Design each stage to be:
72
73
- **Discrete**: Clear boundaries between stages so each can be debugged independently
74
- **Idempotent**: Re-running produces the same result, preventing duplicate work
75
- **Cacheable**: Intermediate results persist to disk, avoiding expensive re-computation
76
- **Independent**: Each stage can run separately, enabling selective re-execution
77
78
**Use this canonical pipeline structure:**
79
80
```
81
acquire -> prepare -> process -> parse -> render
82
```
83
84
1. **Acquire**: Fetch raw data from sources (APIs, files, databases)
85
2. **Prepare**: Transform data into prompt format
86
3. **Process**: Execute LLM calls (the expensive, non-deterministic step)
87
4. **Parse**: Extract structured data from LLM outputs
88
5. **Render**: Generate final outputs (reports, files, visualizations)
89
90
Stages 1, 2, 4, and 5 are deterministic. Stage 3 is non-deterministic and expensive. Maintain this separation because it allows re-running the expensive LLM stage only when necessary, while iterating quickly on parsing and rendering.
91
92
### File System as State Machine
93
94
Use the file system to track pipeline state rather than databases or in-memory structures, because file existence provides natural idempotency and human-readable debugging.
95
96
```
97
data/{id}/
98
raw.json # acquire stage complete
99
prompt.md # prepare stage complete
100
response.md # process stage complete
101
parsed.json # parse stage complete
102
```
103
104
Check if an item needs processing by checking whether the output file exists. Re-run a stage by deleting its output file and downstream files. Debug by reading the intermediate files directly. This pattern works because each directory is independent, enabling simple parallelization and trivial caching.
105
106
### Structured Output Design
107
108
Design prompts for structured, parseable outputs because prompt design directly determines parsing reliability. Include these elements in every structured prompt:
109
110
1. **Section markers**: Explicit headers or prefixes that parsers can match on
111
2. **Format examples**: Show exactly what output should look like
112
3. **Rationale disclosure**: State "I will be parsing this programmatically" so the model prioritizes format compliance
113
4. **Constrained values**: Enumerated options, score ranges, and fixed formats
114
115
Build parsers that handle LLM output variations gracefully, because LLMs do not follow instructions perfectly. Use regex patterns flexible enough for minor formatting variations, provide sensible defaults when sections are missing, and log parsing failures for review rather than crashing.
116
117
### Agent-Assisted Development
118
119
Use agent-capable models to accelerate development through rapid iteration: describe the project goal and constraints, let the agent generate initial implementation, test and iterate on specific failures, then refine prompts and architecture based on results.
120
121
Adopt these practices because they keep agent output focused and high-quality:
122
- Provide clear, specific requirements upfront to reduce revision cycles
123
- Break large projects into discrete components so each can be validated independently
124
- Test each component before moving to the next to catch failures early
125
- Keep the agent focused on one task at a time to prevent context degradation
126
127
### Cost and Scale Estimation
128
129
Estimate LLM processing costs before starting, because token costs compound quickly at scale and late discovery of budget overruns forces costly rework. Use this formula:
130
131
```
132
Total cost = (items x tokens_per_item x price_per_token) + API overhead
133
```
134
135
For batch processing, estimate input tokens per item (prompt + context), estimate output tokens per item (typical response length), multiply by item count, and add 20-30% buffer for retries and failures.
136
137
Track actual costs during development. If costs exceed estimates significantly, reduce context length through truncation, use smaller models for simpler items, cache and reuse partial results, or add parallel processing to reduce wall-clock time.
138
139
## Detailed Topics
140
141
### Choosing Single vs Multi-Agent Architecture
142
143
Default to single-agent pipelines for batch processing with independent items, because they are simpler to manage, cheaper to run, and easier to debug. Escalate to multi-agent architectures only when one of these conditions holds:
144
145
- Parallel exploration of different aspects is required
146
- The task exceeds single context window capacity
147
- Specialized sub-agents demonstrably improve quality on benchmarks
148
149
Choose multi-agent for context isolation, not role anthropomorphization. Sub-agents get fresh context windows for focused subtasks, which prevents context degradation on long-running tasks.
150
151
See `multi-agent-patterns` skill for detailed architecture guidance.
152
153
### Architectural Reduction
154
155
Start with minimal architecture and add complexity only when production evidence proves it necessary, because over-engineered scaffolding often constrains rather than enables model performance.
156
157
Vercel's d0 case study reports improved success after reducing many specialized tools to two primitives: command execution and SQL (claim-project-development-vercel-d0-reduction). The file system agent pattern uses standard Unix utilities instead of custom exploration tools.
158
159
**Reduce when:**
160
- The data layer is well-documented and consistently structured
161
- The model has sufficient reasoning capability
162
- Specialized tools are constraining rather than enabling
163
- More time is spent maintaining scaffolding than improving outcomes
164
165
**Add complexity when:**
166
- The underlying data is messy, inconsistent, or poorly documented
167
- The domain requires specialized knowledge the model lacks
168
- Safety constraints require limiting agent capabilities
169
- Operations are truly complex and benefit from structured workflows
170
171
See `tool-design` skill for detailed tool architecture guidance.
172
173
### Iteration and Refactoring
174
175
Plan for multiple architectural iterations from the start, because production agent systems at scale always require refactoring. Manus refactored their agent framework five times since launch. The Bitter Lesson suggests that structures added for current model limitations become constraints as models improve.
176
177
Build for change by following these practices:
178
- Keep architecture simple and unopinionated so refactoring is cheap
179
- Test across model generations to verify the harness is not limiting performance
180
- Design systems that benefit from model improvements rather than locking in limitations
181
182
## Practical Guidance
183
184
### Project Planning Template
185
186
Follow this template in order, because each step validates assumptions before the next step invests effort.
187
188
1. **Task Analysis**
189
- Define the input and desired output explicitly
190
- Classify: synthesis, generation, classification, or analysis
191
- Set an acceptable error rate based on business impact
192
- Estimate the value per successful completion to justify costs
193
194
2. **Manual Validation**
195
- Test one representative example with the target model
196
- Evaluate output quality and format against requirements
197
- Identify failure modes that need parser hardening or prompt revision
198
- Estimate tokens per item for cost projection
199
200
3. **Architecture Selection**
201
- Choose single pipeline vs multi-agent based on the criteria above
202
- Identify required tools and data sources
203
- Design storage and caching strategy using file-system state
204
- Plan parallelization approach for the process stage
205
206
4. **Cost Estimation**
207
- Calculate items x tokens x price with a 20-30% buffer
208
- Estimate development time for each pipeline stage
209
- Identify infrastructure requirements (API keys, storage, compute)
210
- Project ongoing operational costs for production runs
211
212
5. **Development Plan**
213
- Implement stage-by-stage, testing each before proceeding
214
- Define a testing strategy per stage with expected outputs
215
- Set iteration milestones tied to quality metrics
216
- Plan deployment approach with rollback capability
217
218
## Examples
219
220
**Example 1: Batch Analysis Pipeline (Karpathy's HN Time Capsule)**
221
222
Task: Analyze 930 HN discussions from 10 years ago with hindsight grading.
223
224
Architecture:
225
- 5-stage pipeline: fetch -> prompt -> analyze -> parse -> render
226
- File system state: data/{date}/{item_id}/ with stage output files
227
- Structured output: 6 sections with explicit format requirements
228
- Parallel execution: 15 workers for LLM calls
229
230
Results: $58 total cost, ~1 hour execution, static HTML output.
231
232
**Example 2: Architectural Reduction (Vercel d0)**
233
234
Task: Text-to-SQL agent for internal analytics.
235
236
Before: many specialized tools with lower measured success and longer average execution.
237
238
After: two tools (bash + SQL) with higher measured success and shorter average execution (claim-project-development-vercel-d0-reduction).
239
240
Key insight: The semantic layer was already good documentation. Claude just needed access to read files directly.
241
242
See [Case Studies](./references/case-studies.md) for detailed analysis.
243
244
## Guidelines
245
246
1. Validate task-model fit with manual prototyping before building automation
247
2. Structure pipelines as discrete, idempotent, cacheable stages
248
3. Use the file system for state management and debugging
249
4. Design prompts for structured, parseable outputs with explicit format examples
250
5. Start with minimal architecture; add complexity only when proven necessary
251
6. Estimate costs early and track throughout development
252
7. Build robust parsers that handle LLM output variations
253
8. Expect and plan for multiple architectural iterations
254
9. Test whether scaffolding helps or constrains model performance
255
10. Use agent-assisted development for rapid iteration on implementation
256
257
## Gotchas
258
259
1. **Skipping manual validation**: Building automation before verifying the model can do the task wastes significant time when the approach is fundamentally flawed. Always run one representative example through the model interface first.
260
2. **Monolithic pipelines**: Combining all stages into one script makes debugging and iteration difficult. Separate stages with persistent intermediate outputs so each can be re-run independently.
261
3. **Over-constraining the model**: Adding guardrails, pre-filtering, and validation logic that the model could handle on its own reduces performance. Test whether scaffolding helps or hurts before keeping it.
262
4. **Ignoring costs until production**: Token costs compound quickly at scale. Estimate and track from the beginning to avoid budget surprises that force architectural rework.
263
5. **Perfect parsing requirements**: Expecting LLMs to follow format instructions perfectly leads to brittle systems. Build robust parsers that handle variations and log failures for review.
264
6. **Premature optimization**: Adding caching, parallelization, and optimization before the basic pipeline works correctly wastes effort on code that may be discarded during iteration.
265
7. **Model version lock-in**: Building pipelines that only work with one specific model version creates fragile systems. Test across model generations and abstract the LLM call layer so models can be swapped without rewriting pipeline logic.
266
8. **Evaluation-less deployment**: Shipping agent pipelines without measuring output quality means regressions go undetected. Define quality metrics during development and run evaluation checks before and after every model or prompt change.
267
9. **Provenance drift**: Raw inputs, intermediate outputs, and final proposals separated across ad hoc folders become impossible to audit. Keep each pipeline run in a single directory with source evidence, transformations, validation reports, and decisions.
268
269
## Integration
270
271
This skill owns project-shape and pipeline decisions. Adjacent decisions are owned elsewhere:
272
273
- `tool-design`: the per-tool interface layer (descriptions, schemas, response formats, error messages, MCP namespacing, individual tool consolidation). If the question is "what should this specific tool look like" rather than "what should the pipeline look like," route there.
274
- `multi-agent-patterns`: agent topology decisions (supervisor vs swarm vs hierarchical, handoff protocols, context isolation across agents). This skill picks single-vs-multi at the project level; the topology details belong to multi-agent-patterns.
275
- `harness-engineering`: the autonomous control loop around the project (locked metrics, novelty gates, run state machine, human approval boundaries). If the question is "how do we make this run unattended for days," route there.
276
- `context-fundamentals`: the conceptual frame for context constraints that inform prompt design at every stage.
277
- `evaluation`: outcome measurement and quality gates for pipeline runs.
278
- `context-compression`: when long-running pipeline stages produce trajectories that need summarization.
279
280
## References
281
282
Internal references:
283
- [Case Studies](./references/case-studies.md) - Read when: evaluating architecture tradeoffs or reviewing real-world pipeline implementations (Karpathy HN Capsule, Vercel d0, Manus patterns)
284
- [Pipeline Patterns](./references/pipeline-patterns.md) - Read when: designing a new pipeline stage layout, choosing caching strategies, or debugging stage boundaries
285
286
Related skills in this collection:
287
- tool-design - Tool architecture and reduction patterns
288
- multi-agent-patterns - When to use multi-agent architectures
289
- evaluation - Output evaluation frameworks
290
291
External resources:
292
- Karpathy's HN Time Capsule project: https://github.com/karpathy/hn-time-capsule
293
- Vercel d0 architectural reduction: https://vercel.com/blog/we-removed-80-percent-of-our-agents-tools
294
- Manus context engineering: Peak Ji's blog on context engineering lessons
295
- Anthropic multi-agent research: How we built our multi-agent research system
296
297
---
298
299
## Skill Metadata
300
301
**Created**: 2025-12-25
302
**Last Updated**: 2026-05-15
303
**Author**: Agent Skills for Context Engineering Contributors
304
**Version**: 1.3.0
305

© Context Engineering Agent Skills Contributors · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 6,373 prompts

More by @OpenSourceBuffGuy

See all
Website Clone Architect prompt image

Website Clone Architect

Reverse-engineers a website section by section, writes component specs, and hands them to parallel builder agents in git worktrees to rebuild it.

agent-skill, orchestrator, parallel-agents, multi-agent, plan-then-execute, web-development, frontend, codebase-analysis, scaffolding, css, html, nextjs, typescript, git, mcp, claude-code, for-developers, for-designers, long-form, advanced, technical-spec, task-decomposition, structured-output, design-systems, ui-ux, tool-use, checklist, report, vibe-coding

Italian Terrace Cafe Candid Portrait prompt image

Italian Terrace Cafe Candid Portrait

Generates a photorealistic candid shot of a woman in a white corset dress laughing at a sunny hotel terrace cafe, written as detailed JSON.

image-prompt, json-prompt, structured-output, photorealistic, portrait, woman, candid, fashion, cottagecore, natural-light, golden-hour, bokeh, summer, travel, cityscape, mountains, medium-shot, vibrant-colors, for-photographers, nano-banana, fashion-shoot, luxury

Night Street Photo With Leashed Cat prompt image

Night Street Photo With Leashed Cat

Generates a flash-lit night street photo of a blonde woman in a retro track jacket walking a hissing tabby cat on a leash.

image-prompt, json-prompt, nano-banana, structured-output, portrait, woman, animals, pet-portrait, night-scene, street-photography, candid, editorial, fashion, dramatic-lighting, photorealistic, vertical-format, medium-shot, graffiti, for-photographers, for-content-creators

1 view

Reviews

Loading reviews…

Discussion

Loading comments…