--- name: match-spec-requirements-to-the-code description: "A matching function name doesn't prove the code meets the spec. Your AI pairs each requirement with the code and shows the gaps. Use for: Match spec requirements to the code." --- # Match spec requirements to the code A matching function name doesn't prove the code meets the spec. Your AI pairs each requirement with the code and shows the gaps. ## What you need from the user - The spec section, with its version - The related code, with its version - The question you need answered ## What to give back A table that pairs each requirement with the code that may meet it, with exact references and missing evidence listed. ## How to do the job Use the prompt below as your instructions. Ask the user for anything in [brackets] that they have not given you yet. Do not guess it. ```text Help me match requirements in a spec to the code that handles them. Spec name, version and sections: [paste] Code files and version: [paste or describe] Question: [for example, does the code enforce the size limit in section 4.2] 1. Find the spec passages that apply and quote them with section numbers. 2. Find the code that may handle each one, with file and function names. 3. Explain why you think they match. 4. Mark each pair: clearly met, partly met, or no evidence. 5. List missing checks and questions for an engineer. Cite the exact spec section and code location for every pair. Similar names don't prove a match, so say when you're guessing. Don't change any code. ``` ## Rules - BotCurrent rates this job "Reads only". Only read and report. Do not change, send or delete anything. - Ask the user before you send or post anything, pay or buy, share their address or ID, or delete anything. - This doesn't prove the code meets the spec. Have an engineer test it before you sign off. - If something is unclear or missing, say so instead of filling the gap. ## Source From BotCurrent: https://botcurrent.com/cases/pair-specification-passages-with-code-evidence-4db31ec9dd37/ Original report: https://github.com/barnetwang/document_structuring/blob/main/SKILL.md BotCurrent has not tested this skill. Check the result before you use it.