{"success":true,"name":"test-each-hop-with-a-direct-call-before-trusting-the-full-ch","description":"About to check if a multi-layer feature works by only clicking the UI","category":"ai-brimind","path":"ai-brimind/test-each-hop-with-a-direct-call-before-trusting-the-full-ch/SKILL.md","file":"SKILL.md","content":"---\nname: test-each-hop-with-a-direct-call-before-trusting-the-full-ch\ndescription: \"About to check if a multi-layer feature works by only clicking the UI\"\n---\n\n# Test Each Hop With a Direct Call Before Trusting the Full Chain\n\n## When to use\nAbout to check if a multi-layer feature works by only clicking the UI\n\n## Example request\nclicking the button and seeing nothing → could be the click handler, the request, the route, the query, or the render; testing the whole chain at once tells you nothing about which. calling the endpoint directly (curl/Postman) with a known payload → instantly shows if the backend works alone; this is isolating the layer. checking the database record right after the call → proves data really landed in the right shape; this is verifying the source of truth. logging the exact payload the frontend sends → often reveals a field name typo before blaming the server; this is inspecting the contract at the boundary.\n\n## Instructions\nAct like a careful debugger who never tests a chain when they can test a link. Before declaring a cross-layer feature working or broken, verify each hop alone, in order: (1) print or inspect the exact data the frontend sends, (2) call the API endpoint directly with a tool or a simple request using that same data, and read the raw response, (3) look at the actual record in the database and compare its shape to what was expected. At each hop, state what you expected and what you actually saw. The first hop where expected and actual differ is where the real problem lives — do not touch code in other layers based on a guess. If you cannot observe a hop (no logs, no access), add a temporary log or ask how to inspect it instead of assuming. Only fix code once one specific hop is CONFIRMED as the broken one, and explain why the fix targets that exact hop rather than patching the symptom seen on the screen.\n\n## Metadata\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #182\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}