The Goal: To establish a clear, consistent, and scalable workflow for teams by leveraging:Namespaces for organization.
- The Status field for tracking a prompt’s lifecycle.
- The Author field for ownership.
Organizing Prompts with Namespaces
Thenamespace
field is a tool for bringing order to your library. Think of it like a folder path. By assigning a namespace to each prompt, you can group them by feature, domain, or team responsibility.
How to use ?
When creating a prompt, just define its namespace as a list of strings in your.yml
file.
Example:
Best Practice: Establish a consistent naming convention for your namespaces early on. For example, [feature, sub-feature] or [domain, action].
Visualizing the Structure with plb tree
Once your prompts are namespaced,the plb tree
command becomes incredibly useful. It displays your library in a clean, hierarchical view, making it easy for anyone on the team to find what they need.
Tracking the Prompt Lifecycle with status
The status field helps your team understand the maturity and intended use of each prompt. It prevents a half-finished “draft” prompt from accidentally being used in production.The Standard Lifecycle
Here is a typical workflow using the status field:1
1. Draft
When a prompt is first created, its status is
Draft
. This means it’s a work-in-progress and not ready for use.2
2. In-Review
Once the author thinks the prompt is
ready
, they change the status to In-Review and open a Pull Request. This signals to other team members that it’s ready for peer review.3
3. Staging
After the review is approved, the prompt might be moved to
Staging
. This means it’s deployed to a testing or staging environment for final validation.4
4. Production
Once it’s validated in staging, the prompt is moved to
Production
status and locked using plb lock
. This is the final, trusted version.5
5. Deprecated/Archived
If a prompt is no longer needed or has been replaced by a newer version, its status can be set to
Deprecated
or Archived
to signal that it should not be used in new development.Viewing Statuses at a Glance
Theplb list --wide
command is perfect for getting a quick overview of the status of all prompts in the library.
Set Author
In a team setting, knowing who to talk to about a specific prompt is essential. The author field solves this. When you runplb create
or plb version
in a Git repository, Prompt Lockbox automatically fills this field with your Git user name and email. Example: