From backend-java-web-development
Package-level first entry for fresh, uncertain, or continuing requests in the backend Java web workflow. Start here to interpret raw requests, prioritize explicit requirement-first or no-implementation intent over 'start/continue' wording and technical detail, reopen an existing task, or route to the only legal stage or explicit direct fallback.
How this skill is triggered — by the user, by Claude, or both
Slash command
/backend-java-web-development:backend-java-web-developmentThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This is the package-level routing entry for this skill package.
This is the package-level routing entry for this skill package.
It owns entry interpretation and stage routing, not requirement content, implementation work, or review content.
The package still exports the stage skills under ./skills/, so each stage skill must repeat its own prerequisite checks.
This router determines the current task stage from the fixed task documents plus the implementation-to-review handoff boundary, decides the only legal next stage, and rejects illegal jumps.
The workflow is fixed:
requirement-analysisfeasibility-analysisapcp-web-api-planapcp-web-api-implementationapcp-web-api-self-reviewapcp-plugin-implementationDo not invent parallel stage names. Do not bypass this flow with natural-language assumptions.
Every task must use exactly this folder layout:
tasks/<task-name>/requirement.mdtasks/<task-name>/feasibility.mdtasks/<task-name>/plan.mdtasks/<task-name>/self-review.mdThe old single-file task contract is removed completely. Do not read it, write it, migrate it, reference it, or preserve compatibility for it.
For a brand-new task, the only legal entry is still requirement-analysis.
If tasks/<task-name>/ or tasks/<task-name>/requirement.md does not exist yet, route only to requirement-analysis.
That stage must first:
tasks/<task-name>/tasks/<task-name>/requirement.md## 原始需求 before any analysis, confirmation, or downstream routing continuesFor a fresh raw user request, default to requirement-analysis.
Here, a fresh raw user request means a new or unbound request that has not yet been tied to an existing tasks/<task-name>/ stage state.
If the current work is explicitly continuing or reopening an existing task whose stage state is already established in the fixed task documents, follow that stage state first instead of reclassifying the request as fresh requirement input, unless the current message explicitly sends the work back to the requirement path.
Only treat the request as a non-requirement-stage entry when the user explicitly opts out of starting from requirement-analysis and explicitly chooses direct implementation handling or direct review handling outside the six-stage workflow.
For direct implementation fallback, the same current message must not also assert requirement-first or no-implementation intent.
For direct review fallback, requirement-first intent still hard-vetoes entry, and no-implementation wording alone never selects review; direct review still requires an explicit direct review choice.
The router does not infer a downstream workflow stage from that opt-out.
A fresh request that bypasses requirement-analysis leaves the router-managed six-stage workflow and must use explicit direct fallback handling instead.
Technical detail alone is never enough to bypass the requirement stage.
Class names, method names, endpoint names, validation rules, bug descriptions, file paths, stack traces, or code pointers do not by themselves justify a direct jump into planning, implementation, self-review, or CodeLaw fallback skills.
Nor can 开始吧, 继续吧, or similar execution wording override an explicit requirement-first or no-implementation instruction in the same message.
When interpreting the current user message, explicit stage intent has higher priority than conversational push words or technical detail.
Apply these rules before treating 开始吧, 继续吧, class names, method names, file paths, stack traces, code snippets, validation detail, or similar context as routing signals.
这是需求, 先走需求分析, or 回到需求分析, prioritize the requirement path immediately.
requirement-analysis or return to the requirement path for the bound task.开始吧, 继续吧, or technical detail reinterpret the request as implementation, self-review, plugin work, or direct CodeLaw fallback.不进入实现, 先别写代码, or an equivalent no-implementation instruction, hard-veto apcp-web-api-implementation and codelaw-implementation.
requirement-analysis and does not simultaneously assert requirement-first or no-implementation intent.requirement-analysis and explicitly chooses direct review.
requirement-analysis and also explicitly asks for direct implementation or direct review, do not guess.
Routing must be based on explicit stage state, not only on file existence.
For document-gated transitions, each downstream stage must read the upstream document's ## 阶段状态 block and respect both:
gate: <value>next: <value>The implementation -> self-review boundary is special:
self-review.md is created by the self-review stage itselfrequirement.md
gate: requirement-confirmednext: feasibility-analysisfeasibility.md
gate: ready-for-plan or gate: blockednext: apcp-web-api-plan or next: requirement-analysisplan.md
gate: ready-for-implementation or gate: blockednext: apcp-web-api-implementation or an upstream fallback stageself-review.md
gate: ready-for-plugin or gate: review-failednext: apcp-plugin-implementation or apcp-web-api-implementation or apcp-web-api-planApply these checks in order.
requirement-analysis and also explicitly asks for direct implementation or direct review:
0a. If the current input explicitly says 这是需求, explicitly asks for requirement-analysis, or explicitly asks to return to requirements:
开始吧, 继续吧, or technical detail reclassify the request as plan, implementation, self-review, plugin, or direct CodeLaw fallback0b. If the current input explicitly says not to enter implementation or not to write code, and the same message also explicitly opts out of starting from requirement-analysis and explicitly chooses direct review:
apcp-web-api-implementation and codelaw-implementation0c. If the current input explicitly says not to enter implementation or not to write code:
apcp-web-api-implementation and codelaw-implementationrequirement-analysis0d. If the current input is only a fresh raw user request, no existing fixed-document stage state has been selected for it yet, and the user has not explicitly opted out of starting from requirements:
requirement-analysis0e. If the current input is only a fresh raw user request, no existing fixed-document stage state has been selected for it yet, and the user explicitly opts out of starting from requirement-analysis without conflicting requirement-first intent:
If tasks/<task-name>/ does not exist:
requirement-analysisIf requirement.md does not exist:
requirement-analysisrequirement.md and write ## 原始需求 firstIf requirement.md exists but its gate is not requirement-confirmed:
requirement-analysisIf requirement.md is requirement-confirmed and points to feasibility-analysis:
feasibility-analysisIf feasibility.md does not exist after that confirmation boundary:
feasibility-analysisIf feasibility.md exists and:
gate: blockednext: requirement-analysis
then the declared fallback stage is the only legal routeIf feasibility.md is ready-for-plan and next: apcp-web-api-plan:
apcp-web-api-planIf plan.md does not exist after that confirmation boundary:
apcp-web-api-planIf plan.md exists and:
gate: blockednext points to requirement-analysis or feasibility-analysis
then implementation is forbidden until the declared fallback stage is completedIf self-review.md is ready-for-plugin and next: apcp-plugin-implementation:
apcp-plugin-implementationapcp-web-api-implementationready-for-plugin result before further backend edits continueself-review.md exists and:gate: review-failednext points to apcp-web-api-implementation or apcp-web-api-plan
then plugin work is forbiddennextnext: apcp-web-api-plan, return to apcp-web-api-plan for the recovery pass, and once plan.md is rewritten to a new explicit stage state, resume routing from that new plan.md statenext: apcp-web-api-implementation, return to apcp-web-api-implementation for the recovery pass and stay there until a fresh review-ready handoff is reachedreview-failed result keep overriding a newly completed upstream stage foreverapcp-web-api-self-review becomes the only legal next stageapcp-web-api-self-reviewself-review.md does not yet exist and when a previous review-failed result is being replaced by a new review passplan.md is ready-for-implementation and next: apcp-web-api-implementation:apcp-web-api-implementation is the only legal downstream stage before review handoffapcp-web-api-implementationapcp-web-api-implementationReject illegal jumps explicitly. Examples:
这是需求, 先走需求分析, or 回到需求分析 -> refuse implementation, self-review, plugin, and direct CodeLaw fallback; return to the requirement path不进入实现 or 先别写代码 -> refuse implementation and direct implementation fallback; do not reinterpret that veto as direct review by itself不进入实现 or 先别写代码 and also explicitly chooses direct review -> allow only direct review fallbackrequirement-analysis and direct implementation or direct review in the same message -> do not route; ask for clarificationrequirement-analysisrequirement.md -> refuse feasibility, plan, implementation, self-review, and pluginready-for-plan -> refuse plan, implementation, self-review, and pluginready-for-implementation -> refuse implementation, self-review, and pluginready-for-plugin -> refuse pluginWhen refusing, state the only legal stage to return to.
Do not provide soft wording that leaves room for skipping gates.
Do not let 开始吧, 继续吧, or technical detail weaken these refusals.
This router does not execute CodeLaw itself. It only enforces where CodeLaw may be used inside the six-stage workflow.
Within workflow routing:
requirement-analysis must not invoke any CodeLaw skillfeasibility-analysis must not invoke any CodeLaw skillapcp-web-api-plan must not invoke any CodeLaw skillapcp-web-api-implementation may invoke only codelaw-implementationapcp-web-api-self-review may invoke only codelaw-self-reviewapcp-plugin-implementation must not invoke any CodeLaw skillThese stage restrictions apply only to the six-stage workflow.
Direct fallback Java implementation tasks may call codelaw-implementation only when the user explicitly opts out of starting from requirement-analysis first, explicitly chooses direct implementation handling outside the six-stage workflow, and the same current message does not also contain requirement-first or no-implementation veto language.
Direct fallback Java review tasks may call codelaw-self-review only when the user explicitly opts out of starting from requirement-analysis first and explicitly chooses direct review handling outside the six-stage workflow.
Requirement-first intent still vetoes direct review fallback, and no-implementation wording alone never selects review.
The router must not guess a downstream workflow stage for such requests.
Use stage-scoped transition rules instead of one blanket confirmation rule:
requirement-analysis -> feasibility-analysis: stop and wait for user confirmationfeasibility-analysis -> apcp-web-api-plan: stop and wait for user confirmation when feasibility.md ends with gate: ready-for-planapcp-web-api-plan -> apcp-web-api-implementation: continue automatically when plan.md ends with gate: ready-for-implementationapcp-web-api-implementation -> apcp-web-api-self-review: continue automatically only after explicit review-ready handoffapcp-web-api-self-review -> apcp-web-api-implementation or apcp-web-api-plan: continue automatically as the immediate upstream recovery hop when self-review.md ends with gate: review-failed and next points upstream; after that recovery pass, resume normal routing from the newly completed upstream stateapcp-web-api-self-review -> apcp-plugin-implementation: stop and wait for user confirmation even when self-review.md ends with gate: ready-for-plugin; if the user explicitly reopens backend changes instead, return to apcp-web-api-implementation first and invalidate the old review result before more backend edits continueapcp-web-api-plan absorb self-review responsibilityapcp-web-api-implementation grant final plugin entryapcp-plugin-implementation redefine backend designGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub kohlarnhin/backend-java-web-development --plugin backend-java-web-development