Initial commit

This commit is contained in:
Zhongwei Li
2025-11-29 18:00:57 +08:00
commit 8e2bf0df9d
9 changed files with 161 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
{
"name": "plan",
"description": "Slash commands and agents to help you plan and execute work.",
"version": "0.0.0-2025.11.28",
"author": {
"name": "Benjamin Benetti",
"email": "ben@bbenetti.ca"
},
"commands": [
"./commands"
]
}

3
README.md Normal file
View File

@@ -0,0 +1,3 @@
# plan
Slash commands and agents to help you plan and execute work.

9
commands/load-context.md Normal file
View File

@@ -0,0 +1,9 @@
# Load Context
You will inspect the code under the directory $ARGUMENTS and load it into context. You MUST
focus on understand the the project structure, and key concepts. You will NOT write any code.
Your goal is to build an understanding of the project so that you can effectively plan changes
and execute changes to it.
### Important rules
Do not use subagents. You your self MUST inspect the code so that YOU understand it.

2
commands/read-session.md Normal file
View File

@@ -0,0 +1,2 @@
Read the /session.md file to get an understanding of the recent changes made to
the project.

View File

@@ -0,0 +1,11 @@
# Review Plan
You will use `git` to review the current uncommitted changes. You will assess how well these changes achieve the plan found in the $ARGUMENTS file. You want to look for the following:
1. Does the code match the plan?
2. Is the code clean and maintainable?
3. Are there tests for the code?
4. Are there extra changes that are not part of the plan?
After your review produce a report for the user to let them know about any issues
they should be aware of. Keep this report Short. Only provide a high level overview, and point out any issues. Don't bother listing all the things that have been done correctly. The user may prompt you to fix any issues you find.

12
commands/run.md Normal file
View File

@@ -0,0 +1,12 @@
# Run Plan
You will execute the plan laid out in the file $ARGUMENTS. You will follow the plan
step by step. Once you've implemented the plan think critically to see if you achieved the goals laid out in the plan. If the plan appears wrong or something is unclear ask the user for clarification.
# Review your code
After you've run through the plan. Use a subagent to review the code you wrote. Give the subagent the following prompt file ./.claude/commands/review-plan-implementation.md targeting the same plan file you just executed, i.e. $ARGUMENTS.
# Fix Review Feedback
After the review is complete, address any issues you found. Then go BACK to the review phase again, until there are no more issues to address.

34
commands/write-session.md Normal file
View File

@@ -0,0 +1,34 @@
# Session Recording Procedure
1. The session info is stored in the /session.md file.
2. The session is recorded in chronological order, append entries to the end of
the file.
3. You will add your session summary to the `session.md` file at the end of the
file.
4. After adding your session summary. You will TRIM the summary file, if the
following conditions are met:
- The summary file is more than 1000 lines long. When trimming, you will
remove the oldest entries until the file is less than 1000 lines long.
# How to Record a Session
Record a summary of the tasks you just performed to the `session.md`. This
should be a high level summary to inform the user of the changes made. Include
any relevant context or details that would help the user understand the
modifications.
# Summary Template
The summary must follow this very simple template
## <title> - <date>
<summary>
### For example:
## Add new endpoint /help - 2023-10-05-10:00
Updated the backend to include a new `/help` endpoint that provides assistance
with common issues. This endpoint is now accessible via the main application
interface.

13
commands/write.md Normal file
View File

@@ -0,0 +1,13 @@
# Write Plan
You will write a detailed plan on how to achieve the request found in the file $ARGUMENTS
Write this plan in to a `/plan/<request name>-plan.md` file.
#### Planing Process
1. Read the request file in its entirety.
2. Research the existing code, looking for related files.
3. Research the web for any relevant information and documentation on libraries and APIs that you will need to use.
4. Devise a plan in great detail.
4.1 Create a detailed step by step task list that outlines the work to be done.
4.2 List the files to modify, create, and delete giving an overview of the changes.
4.3 Describe the main changes to make, and the task to be achieved.

65
plugin.lock.json Normal file
View File

@@ -0,0 +1,65 @@
{
"$schema": "internal://schemas/plugin.lock.v1.json",
"pluginId": "gh:BenjaminBenetti/bb-claude-plugins:plugins/plan",
"normalized": {
"repo": null,
"ref": "refs/tags/v20251128.0",
"commit": "e9d83458f6a564e823fc454766f2a990addbc43d",
"treeHash": "2217f7f1715c3e16bd20996283ef3504803005c14a6c3f3f6eee74af93393e44",
"generatedAt": "2025-11-28T10:09:57.560200Z",
"toolVersion": "publish_plugins.py@0.2.0"
},
"origin": {
"remote": "git@github.com:zhongweili/42plugin-data.git",
"branch": "master",
"commit": "aa1497ed0949fd50e99e70d6324a29c5b34f9390",
"repoRoot": "/Users/zhongweili/projects/openmind/42plugin-data"
},
"manifest": {
"name": "plan",
"description": "Slash commands and agents to help you plan and execute work.",
"version": null
},
"content": {
"files": [
{
"path": "README.md",
"sha256": "e50f12db650447aff8f95bb984b033e13ba271f69f6e8883b87482937de978ad"
},
{
"path": ".claude-plugin/plugin.json",
"sha256": "dcd638dc578f74b4ff0e1dadb4dac45584fe9019023aef53fc7650b4d2b54d4e"
},
{
"path": "commands/write-session.md",
"sha256": "62f8bad1db2718295f0e5a19fa243da2bc22ecfbb2dfd2b4caac57080607ab75"
},
{
"path": "commands/read-session.md",
"sha256": "1da93fd86baf769fdef067ad93e9995ac23dd4fc13a9778cb393ab187f966db7"
},
{
"path": "commands/load-context.md",
"sha256": "a6baae5699a7f50cae9edbd4e468b61a1335e7a8e7133686e46045b841e98d7e"
},
{
"path": "commands/write.md",
"sha256": "978f63d928c5e15ce121d268cd5ebc77f787d4f322158a924ad9bf0d7b6ecf92"
},
{
"path": "commands/review-implementation.md",
"sha256": "e6b211865e216c5f7af22c3dc75960e070693ca5c4ae615873ba2460698bbb78"
},
{
"path": "commands/run.md",
"sha256": "52ba418e677b481836895c1710b035988e0d62ab87fb3e661b32e81ff7f1dbe4"
}
],
"dirSha256": "2217f7f1715c3e16bd20996283ef3504803005c14a6c3f3f6eee74af93393e44"
},
"security": {
"scannedAt": null,
"scannerVersion": null,
"flags": []
}
}