agentleFS
ChristopherAlphonseChristopherAlphonse/calphonse-skills/application-lifecycle-trace/SKILL.md

application-lifecycle-trace

Skill1 starsChanged 10 days agoMITView on GitHub

Show case application lifecycle

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    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
  1. Distinctive:

    Keep the trace focused on primary flows.

    line 14
  2. Distinctive:

    Do not modify source code.

    line 15
  3. Distinctive:

    Error Handling: If requirements are ambiguous, the AI must re-trigger the clarification loop.

    line 54

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

Title: PRD Generation

Guardrails

  • Trace only flows supported by source, docs, tests, or explicit user context.
  • Label inferred lifecycle steps as assumptions.
  • Keep the trace focused on primary flows. Do not add speculative components.
  • Do not modify source code.

User Story: As a developer, I want to provide a high-level feature idea and receive a structured, unambiguous PRD so that a junior developer can implement it with minimal oversight.


Layer 1: User Journey (Flowchart)


Layer 2: Component Architecture

ComponentLogic SourceResponsibilityKey Reference
User InterfaceSystem PromptCapture intent and selectionsPrompt Entry
Clarification ProcessorRule: ProcessGenerate lettered/numbered questionsPRD Mode: Step 2
Generation EngineRule: StructureFormat data into standard PRD sectionsPRD Structure
Storage ManagerRule: OutputWrite Markdown to specific directory/tasks/prd-*.md

Layer 3: Sequence Diagram

Key Design Patterns Used:

  1. Stateful Interaction: The system pauses for user feedback (Clarification Step) before proceeding to final generation, ensuring accuracy.
  2. Template Method: The PRD follows a rigid, predefined structure regardless of the feature content to ensure consistency.
  3. Persistence Ignorance: The logic focuses on document structure, while the storage rule dictates the final file path and naming convention.

Data Structures


Quick Reference

  • Event Triggers: User prompt containing "new feature" or "PRD".
  • File Format: Standard GFM (GitHub Flavored Markdown).
  • Error Handling: If requirements are ambiguous, the AI must re-trigger the clarification loop.
  • Validation: Final PRD must be legible by a "Junior Developer" profile.

Related Lifecycles

  1. Task Decomposition: Converting a PRD into a tasks-prd-*.md file.
  2. DAP Implementation: Creating a Deployment Action Plan for schema changes.
  3. System Onboarding: Generating use_cases.md from repo analysis.

Next Step: I can now save this lifecycle trace to .planning/memory/system/001_lifecycle_prd_generation.md. Would you like me to finalize the file creation?

Install: npx skills add ChristopherAlphonse/calphonse-skills --skill application-lifecycle-trace

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.