How 1toe/workprd works
Purpose and entry points
This repository presents a Spanish-language prompt/workflow library centered on PRD creation, changes, verification, feature extraction, RFCs, rules, and implementation prompts. The primary application is a Next.js App Router site entered through src/app/page.tsx, with route-specific prompt and view pages.
Application routing
• Root landing page: src/app/page.tsx
• Dynamic prompt detail route: src/app/p/[id]/page.tsx
• Dynamic view route: src/app/views/[id]/page.tsx
• Prompt catalog route: src/app/views/prompts-index/page.tsx
The [id] segments are the principal navigation boundary: route parameters select individual prompt or view content rather than requiring a separate page implementation per prompt.
Prompt-content layer
Prompt definitions/content are centralized in src/constants/contenidoPrompts.ts, while source Markdown prompt artifacts live under mds/, including:
• mds/interactive-prd-creation-prompt.md
• mds/prd-to-rfcs-prompt.md
• mds/implementation-prompt-template.md
This creates a content boundary between reusable prompt material and the UI that indexes or renders it. Legacy standalone HTML prompt pages remain in views/, such as views/prompts-index.html and views/interactive.html.
UI composition
Reusable presentation components are organized in src/components/ui/. The main site is composed from navigation, hero/section, prompt-card, prompt-viewer, modal, footer, and workflow-step components:
• src/components/ui/Navegacion.tsx
• src/components/ui/TarjetaPrompt.tsx
• src/components/ui/VisualizadorPrompt.tsx
These components support a content-driven catalog/detail experience rather than embedding each prompt’s UI directly in routes.
Theme and client interaction
Theme state is isolated in React context and a hook:
• src/context/TemaContexto.tsx
• src/hooks/useTheme.ts
• src/components/ui/BotonTema.tsx
Interactive UI elements, including prompt viewing and modal behavior, are represented by src/components/ui/Modal.tsx and src/components/ui/VisualizadorPrompt.tsx. Global styling begins at src/app/globals.css; the repository also retains non-App-Router CSS under css/.
Runtime and deployment boundaries
The active application is configured as a Next.js/TypeScript project through next.config.js, next.config.mjs, and tsconfig.json, with Tailwind/PostCSS configuration in tailwind.config.ts and postcss.config.js. Deployment targeting is indicated by vercel.json.
capacitor.config.ts and ionic.config.json indicate an optional mobile-wrapper/runtime boundary. No backend, database, authentication provider, or external API integration is evidenced by the supplied tree.
Components 19
Next.js web app
- Landing page · Primary site entry point.
src/app/page.tsx - Prompt detail route · Selects a prompt by ID.
src/app/p/[id]/page.tsx - View route · Selects a view by ID.
src/app/views/[id]/page.tsx - Prompt catalog
src/app/views/prompts-index/page.tsx - Global styles
src/app/globals.css
Prompt content
- Prompt registry · Centralized prompt definitions for the UI.
src/constants/contenidoPrompts.ts - PRD creation prompt
mds/interactive-prd-creation-prompt.md - PRD-to-RFC prompt
mds/prd-to-rfcs-prompt.md - Implementation prompt
mds/implementation-prompt-template.md - Legacy HTML views · Retained standalone prompt pages.
views/prompts-index.html
UI and interaction
- Reusable UI components · Navigation, cards, sections, footer, and workflow presentation.
src/components/ui/Navegacion.tsx - Prompt card
src/components/ui/TarjetaPrompt.tsx - Prompt viewer · Renders prompt content and viewing interactions.
src/components/ui/VisualizadorPrompt.tsx - Modal
src/components/ui/Modal.tsx - Theme state · Shared theme state and hook.
src/context/TemaContexto.tsx - Theme toggle
src/components/ui/BotonTema.tsx
Runtime targets
- Next.js runtime · TypeScript App Router application configuration.
next.config.js - Vercel deployment
vercel.json - Mobile wrapper · Capacitor/Ionic mobile packaging boundary.
capacitor.config.ts
Connections 18
- Next.js runtime → Landing page: serves
- Landing page → Reusable UI components: composes
- Prompt catalog → Prompt registry: indexes
- Prompt catalog → Prompt card: renders
- Prompt detail route → Prompt registry: resolves by ID
- View route → Prompt registry: resolves by ID
- Prompt detail route → Prompt viewer: renders
- View route → Prompt viewer: renders
- Prompt viewer → Modal: uses
- Prompt registry → PRD creation prompt: draws from
- Prompt registry → PRD-to-RFC prompt: draws from
- Prompt registry → Implementation prompt: draws from
- Reusable UI components → Theme state: consumes
- Theme toggle → Theme state: updates
- Next.js runtime → Global styles: loads
- Vercel deployment → Next.js runtime: deploys
- Mobile wrapper → Next.js runtime: wraps optionally
- Legacy HTML views → Prompt catalog: legacy counterpart