| title | Common Workflows |
|---|---|
| description | Step-by-step guides for the tasks developers tackle most often with JD.AI. |
Practical, step-by-step guides for the tasks developers tackle most often with JD.AI. Each workflow shows numbered steps with example prompts you can adapt to your own projects.
Ramp up on an unfamiliar project without reading every file by hand.
-
Get a high-level overview — start broad:
what does this project do? -
Explore folder structure — understand how code is organized:
explain the folder structure and key files -
Find specific logic — drill into a feature area:
where is the authentication logic? -
Delegate deep exploration — spawn a focused subagent for larger investigations:
spawn an explore agent to map out the API endpoints
Move from symptom to fix with a tight feedback loop.
-
Describe the symptom — include error messages and reproduction steps:
the login endpoint returns 401 after session timeout — here is the stack trace: ... -
Let JD.AI locate the root cause — point it at the right area:
the login fails after session timeout, check src/auth/ -
Write a failing test first — prove the bug exists before touching production code:
write a test that reproduces the session-timeout 401 -
Implement the fix and verify — apply the change, then run the full suite:
fix the bug and run the tests to make sure nothing else broke
Improve structure incrementally while keeping existing behavior intact.
-
Analyze before changing — understand what needs work:
analyze the payment module for code smells -
Plan the refactor — get a concrete action list:
create a plan to refactor payments to use async/await -
Execute step by step — make one change at a time and verify after each:
apply step 1 of the plan and run the tests -
Run tests after every change — catch regressions immediately:
run the full test suite and report any failures
Build confidence in your code with thorough test coverage.
-
Check current coverage — find the gaps:
what code paths in UserService aren't tested? -
Generate tests — target a specific method and its edge cases:
write unit tests for the Calculator.Divide method, including edge cases -
Follow existing patterns — match the conventions already in the project:
look at existing tests to match the style -
Verify — run the new tests and confirm they pass:
run the tests and report results
Go from local changes to a reviewable PR in a single conversation.
-
Review changes — see what you have staged and unstaged:
what files have I changed? -
Create a commit — let JD.AI draft a message following conventional commits:
commit my changes with a descriptive conventional commit message -
Push and open a PR — target the right branch:
push to origin and create a PR targeting main
Keep docs accurate and complete without switching tools.
-
Generate from code — sync documentation with the actual implementation:
update the README to reflect current installation steps -
Add XML docs — ensure public APIs are documented:
add XML documentation to all public methods in UserService -
Create guides — produce onboarding or contributor documentation:
write a getting-started guide for new contributors
Delegate scoped work to purpose-built subagents that run in their own context.
-
Explore — deep-dive into a feature without polluting your main conversation:
use an explore agent to find how caching works -
Task — offload a long-running command and get a summary:
use a task agent to run the full test suite and report failures -
Review — get a second opinion on your changes:
use a review agent to check my changes against the coding standards
Coordinate multiple subagents when a single agent is not enough.
-
Sequential pipeline — chain stages end to end:
analyze the codebase, plan the migration, implement it, then review the result -
Fan-out — run independent analyses in parallel:
analyze the frontend, backend, and database layers in parallel and summarize -
Debate — solicit competing perspectives before committing to a direction:
get two different architectural proposals for the new notification service
Preserve and resume your work across terminal sessions.
| Command | Purpose |
|---|---|
/name feature-auth |
Name the current session |
/save |
Persist the session to disk |
/sessions |
List all saved sessions |
/resume <id> |
Continue a previous session |
/export |
Export the session as JSON |
Tip
Name your sessions descriptively — /name feature-auth is easier to find later than an auto-generated ID.
- Best Practices — tips for writing effective prompts
- Tools — overview of built-in tool categories
- Commands — all slash commands grouped by task
- Sessions & History — full session management guide