PromptBase
Upgrade
Close icon
General
Home
Marketplace
Create
Hire
Login
Chat
Sell
Explore

Prompt Details

Model
Chat - (gpt-5.6)
Token size
2,568
Example input
[Example: Add user authentication with email login]: Add a password reset feature for existing users. [Example: React frontend, Node.js API, PostgreSQL]: React frontend, Node.js API, PostgreSQL database. [Example: Users can register, log in, and log out]: Users can request a password reset and set a new password. [Example: Use existing authentication service]: Constraints: Use the existing authentication system. [Example: Check whether the task is implementation-ready]: Check whether the task is implementation-ready.
Example output
πŸ” PHASE 1 β€” INSTRUCTION DECOMPOSITION 🎯 Primary Objective Add a password reset workflow for existing users. πŸ“Œ Explicit Requirements A password reset feature must be added. Existing users should be able to request a reset. Users should be able to set a new password. The existing authentication system must be used. The stated technical context is React + Node.js + PostgreSQL. ❓ Missing Information How users initiate the reset. Whether reset is performed through email, SMS, or another mechanism. What happens when the account does not exist. How reset credentials/tokens are generated and validated. Token expiration requirements. Password requirements. Whether existing sessions are invalidated after a successful reset. Required API endpoints or existing authentication interfaces. Acceptance criteria. Required unit/integration/end-to-end testing. 🧠 Explicit vs Inferred Explicit: Password reset functionality is required. Inferred but unconfirmed: The workflow may involve a reset token and an email/message. This should not be treated as a confirmed requirement. --- πŸ”Ž PHASE 2 β€” CLARITY AUDIT Requirement Status Issue Impact Add password reset Clear Core objective is understandable Low Users can request reset Ambiguous Request mechanism is unspecified High Users can set new password Clear Basic behavior is defined Medium Use existing authentication Ambiguous Existing authentication capabilities are not described High Reset security behavior Missing Token/session/security rules are undefined High Password rules Missing New-password requirements are unspecified Medium Completion conditions Missing No objective acceptance criteria High ⚠️ Ambiguous Language There is no problematic vague language such as "fast" or "secure" in the instruction. However, "use the existing authentication system" is technically underspecified because the available interfaces and capabilities of that system are unknown. --- 🧩 PHASE 3 β€” COMPLETENESS AUDIT βœ… Functional Behavior Partially defined: Request password reset. Set a new password. ❌ Inputs Missing: What information the user submits to request a reset. What information is required to establish a new password. ❌ Outputs Missing: Expected response after requesting reset. Expected response after successful password change. Expected behavior for invalid reset attempts. ❌ Error Behavior Not defined for: Invalid reset credentials. Expired reset credentials. Already-used reset credentials. Unknown account. Invalid new password. Server/authentication-service failure. ❌ Acceptance Criteria No measurable acceptance criteria are currently provided. ⚠️ Permissions The requirement concerns account authentication, but authorization/session behavior after resetting the password is unspecified. --- πŸ—οΈ PHASE 4 β€” TECHNICAL CONSISTENCY AUDIT πŸ–₯️ Architecture Confirmed: React frontend. Node.js API. PostgreSQL database. Unknown: Existing authentication implementation. Existing API structure. Existing database user schema. Existing authentication-related modules. Therefore, compatibility with the current authentication implementation cannot yet be verified. πŸ”— Dependencies Dependency Status Concern Existing authentication system Confirmed as a constraint Exact capabilities unspecified PostgreSQL Confirmed Required data changes are unknown React frontend Confirmed Reset UI flow unspecified Node.js API Confirmed API contract unspecified Email/SMS service Unknown May or may not be required πŸ” Security Considerations The instruction does not define: Reset credential lifetime. One-time-use behavior. Password validation rules. Session handling after reset. Protection against unauthorized reset attempts. These should be clarified rather than invented. --- ⚠️ PHASE 5 β€” IMPLEMENTATION RISK AUDIT Finding Severity Why It Matters Reset mechanism unspecified BLOCKER Developers cannot reliably implement the user flow Existing auth capabilities unknown HIGH Integration approach cannot be confirmed Reset credential behavior undefined HIGH Security-critical behavior is unspecified Password rules missing MEDIUM Frontend/backend validation may differ Error behavior missing MEDIUM Different implementations may handle failures differently Acceptance criteria missing HIGH Completion cannot be objectively verified --- 🧠 ASSUMPTION AUDIT Assumption 1 Assumption: Password reset will use email. Why it could be made: This is a common password-reset pattern. Why it matters: It introduces an external communication dependency and changes the implementation. Information required: Confirm the intended reset delivery mechanism. Assumption 2 Assumption: A temporary reset token will be stored or validated. Why it could be made: Many password-reset systems use temporary credentials. Why it matters: Token generation, storage, expiration, and validation affect the architecture. Information required: Specify the intended reset mechanism or confirm that the existing authentication system already provides it. Assumption 3 Assumption: Existing user sessions should be invalidated. Why it could be made: Password changes can affect active sessions. Why it matters: Session behavior changes the post-reset security flow. Information required: Define expected session behavior after a successful reset. --- πŸ§ͺ PHASE 6 β€” TESTABILITY AUDIT Area Gap Risk Validation Needed Reset request Request behavior unspecified High Define valid request behavior Reset credential Expiration/validity unspecified High Define expected validity rules New password Requirements unspecified Medium Define password validation Invalid request Behavior unspecified Medium Define expected error behavior Successful reset Completion behavior incomplete High Define observable success condition Existing sessions Behavior unspecified Medium Define expected session state Regression No testing requirement Medium Define affected authentication flows to verify --- πŸ”— REQUIREMENT TRACEABILITY Major Requirement Implementation Area Expected Behavior Acceptance Criteria Test Coverage Request password reset React + Node.js API User initiates reset Request produces defined result Missing Set new password React + Node.js API + auth system Valid reset allows password change Password changes successfully Missing Existing authentication Authentication integration Reset works with current auth Existing authentication remains functional Missing Error handling Frontend + API Invalid requests handled correctly Defined failure responses Missing 🚨 Traceability Gap The core requirements have identifiable implementation areas, but specific acceptance criteria and test coverage are missing. --- πŸ› οΈ CORRECTION BLUEPRINT 1. Define Reset Mechanism Priority: BLOCKER Why it matters: Developers need to know how users initiate and complete the reset. Recommended clarification: Specify whether the reset uses the existing authentication provider's functionality or another mechanism. Expected benefit: Removes a major implementation decision. 2. Define Authentication Integration Priority: HIGH Why it matters: "Use the existing authentication system" does not identify its available capabilities. Recommended clarification: Specify the relevant existing authentication component/interface. Expected benefit: Reduces integration assumptions. 3. Define Security Behavior Priority: HIGH Why it matters: Reset credentials and post-reset session behavior affect authentication security. Recommended clarification: Define the required reset credential and session behavior. Expected benefit: Produces consistent implementation and testing. 4. Define Error Cases Priority: MEDIUM Why it matters: Developers could implement different failure behavior. Recommended clarification: Specify expected behavior for invalid or expired reset attempts and invalid passwords. Expected benefit: Consistent UX and API behavior. 5. Define Acceptance Criteria Priority: HIGH Why it matters: There is currently no objective definition of "done." Recommended clarification: Add observable success and failure conditions. Expected benefit: Enables reliable QA and AI-agent verification. --- πŸ€– AI CODING AGENT READINESS Context Sufficiency Needs Clarification ⚠️ The framework and broad objective are supplied, but important implementation context is missing. Behavior Definition Partially Defined 🟑 The beginning and end of the workflow are known, but the intermediate behavior is not. Dependency Clarity Partially Defined 🟑 The existing authentication system is identified as a dependency, but its relevant capabilities are unknown. Acceptance Criteria Missing πŸ”΄ No objective completion criteria are provided. Testing Expectations Missing πŸ”΄ No testing expectations are specified. Error Handling Missing πŸ”΄ Important failure scenarios are undefined. --- πŸ“‹ IMPLEMENTATION READINESS REPORT Overall Readiness: NOT READY πŸ”΄ 🚫 Blocking Issues Reset mechanism is unspecified. Existing authentication capabilities are unknown. Critical reset/security behavior is undefined. Acceptance criteria are missing. ⚠️ Important Clarifications How users initiate the reset. How reset authorization is established. What makes a reset request valid or invalid. New-password requirements. Post-reset session behavior. Expected error behavior. βœ… Suggested Acceptance Criteria These are recommendations, not existing requirements: A user can initiate the defined password-reset flow. A valid reset flow allows the user to establish a new password. Invalid reset attempts are rejected according to the defined rules. New-password validation follows the defined requirements. Existing authentication behavior remains functional after the feature is implemented. Relevant success and failure scenarios are covered by tests. πŸ§ͺ Suggested Testing Requirements Unit tests for password-reset logic. API/integration tests for the reset workflow. Frontend tests for the reset user flow. Failure-case tests for invalid reset attempts. Regression tests for existing authentication functionality. --- πŸ‘¨β€πŸ’» DEVELOPER HANDOFF CHECKLIST [ ] Confirm reset initiation mechanism. [ ] Confirm existing authentication capabilities. [ ] Define reset authorization/credential behavior. [ ] Define expiration/validity behavior. [ ] Define new-password requirements. [ ] Define post-reset session behavior. [ ] Define error behavior. [ ] Define acceptance criteria. [ ] Define required test coverage. [ ] Confirm affected frontend/backend/database areas. [ ] Confirm whether external services are involved. --- 🎯 FINAL AUDIT CONCLUSION The instruction has a clear high-level objective, but it is not yet sufficiently detailed for reliable implementation. The biggest issue is not the technology stack; it is the absence of the specific password-reset workflow, security behavior, error behavior, and measurable acceptance criteria. Once those details are supplied, the task can be reassessed for implementation readiness without redesigning the original requirement.
GPT

Coding Instruction Auditor

Add to Cart
Instant accessInstant access
Usage rightsCommercial use
Money-back guaranteeMoney‑back
By purchasing this prompt, you agree to our terms of service
GPT-5.6
Tested icon
Guide icon
4 examples icon
Free credits icon
Poor coding instructions can lead to wrong implementations, unnecessary rework, missed edge cases, and inconsistent results. Coding Instruction Auditor analyzes technical instructions before implementation and identifies ambiguity, missing requirements, contradictions, unsupported assumptions, unclear acceptance criteria, dependency gaps, and testing weaknesses. πŸš€ Audit your coding instructions before development starts and prevent avoidable rework.
...more
Added 2 weeks ago
Report
Browse Marketplace