prompt-registry

Maintains a commit-tracked register of AI prompts that generated each project artifact.

Updated Dec 1, 2025
One-click install
npx skills add https://github.com/jterratsdev/smart-deployment --skill prompt-registry-jterratsdev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prompt-registry
Source: https://github.com/jterratsdev/smart-deployment/tree/main/.setup-agents/skills/prompt-registry
Command: npx skills add https://github.com/jterratsdev/smart-deployment --skill prompt-registry-jterratsdev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Teams using AI to generate Salesforce artifacts lose track of which prompts produced which components, making it impossible to trace generated code back to its origin or keep new artifacts consistent with established project conventions. ## Core Features & Use Cases - Convention inference before generation: Reads the existing .generated-prompts/<type>.md register before creating any artifact to infer naming conventions, data layer strategy, patterns, and sharing model decisions. - Prompt persistence after generation: Appends or updates one entry per component with creation date, iteration count, key decisions, and the final prompt, keeping only the latest version while git history holds the trail. - Typed register files: Covers Apex, LWC, flows, triggers, Visualforce, Aura, OmniStudio, metadata, diagrams, CI/CD, docs, and tests, each mapped to active team profiles. - Use Case: A developer asks the AI to create a new Apex service class; the Skill first reads .generated-prompts/apex.md to match the existing selector-layer pattern, then registers the new prompt entry after generation. ## Quick Start Before generating any new Salesforce component, read the matching file in .generated-prompts/ to follow existing conventions, then record the final prompt there after the artifact is created.

Frequently Asked Questions about prompt-registry

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

FAQPage Schema
How do I track which AI prompt generated a Salesforce component?

Record each component's final prompt in the matching .generated-prompts/<type>.md file at the repo root, one entry per component with creation date, iterations, key decisions, and the prompt text. Git history preserves older versions automatically.

How to keep AI-generated Apex code consistent with project conventions?

Read the entire .generated-prompts/apex.md register before generating any new class. Existing entries reveal naming conventions, data layer strategy, trigger handler patterns, and sharing model decisions that the new artifact should follow.

What counts as a substantial change requiring a prompt registry update?

Substantial changes include new methods or responsibilities, new business requirements, pattern changes like @future to Queueable, architectural refactors, and new integrations. Typo fixes, formatting, and comment updates do not require updates.

Does the prompt registry keep multiple versions of each prompt?

No, only the latest prompt lives in the register file. When an entry exists, update it in place by incrementing Iterations, refreshing the Updated date, and replacing the Prompt. The git history holds the full version trail.

Which artifact types does the prompt registry support?

The registry covers Apex classes, LWC, flows, triggers, Visualforce, Aura, OmniStudio components, metadata types like CustomObjects and PermissionSets, architecture diagrams, CI/CD pipelines, generated documentation, and test plans, each in its own typed file.