1.4 KiB
/guide
Interactive step-by-step guide for nvim plugin development tasks.
Instructions
-
Ask the user what they want to accomplish. Gather enough context to build a step-by-step plan (the plugin name, the goal, any constraints).
-
Determine the plugin name from the current repo (basename of the working directory) and today's date. Run exactly one Bash command:
basename "$(git rev-parse --show-toplevel)" && date +%Y-%m-%d -
Build a numbered step-by-step plan as a markdown file. Run exactly one Bash command:
mkdir -p /tmp/<plugin>-<date> && cat > /tmp/<plugin>-<date>/guide.md <<'EOF' # <Goal> Plugin: <plugin> Date: <date> Branch: <branch name to create> ## Steps 1. <step> 2. <step> ... ## Current Step 1: <description> EOF -
Present step 1 to the user. Execute it. Show the result. Ask for confirmation before moving to the next step.
-
After the user confirms, update the
## Currentsection in the guide to reflect the next step, then execute it. Repeat until all steps are done. -
When all steps are complete, update the guide with a
## Donesection and print the path to the guide file.
Keep each step small and self-contained. Prefer one logical change per step. If a step reveals unexpected complexity, break it into sub-steps and update the guide before proceeding.