- Home
- Skills
- Prompt & Skill Engineering
- Mejorar Preguntas
Works with the AI Agents you already use
Mejorar Preguntas
by Cjrh
Transforms vague web dev requests into precise technical prompts and applies them to your codebase immediately.
$1
Mejorar Preguntas
Example session with this skill installed
The profile page is showing a loading spinner forever after I update my email. Fix it.
- Read your context and instructions
- Compiled the mejorar preguntas
I have analyzed the project structure and identified the profile update flow. I reformulated the request into a technical diagnostic task and applied the fix to the user service and frontend hook.
Technical Reformulation & Fix
Act as a Full-Stack Engineer. Diagnose why the profile interface hangs in a loading state after an email update. I have identified the stack as Next.js with a Prisma/Node backend. The issue was localized to the useProfile hook not handling the 204 No Content response correctly during the revalidation phase.
Code Changes
// src/hooks/use-profile.ts
export const useUpdateProfile = () => {
const [loading, setLoading] = useState(false);
const updateEmail = async (newEmail: string) => {
setLoading(true);
try {
const res = await fetch('/api/user/profile', {
method: 'PATCH',
body: JSON.stringify({ email: newEmail })
});
// FIX: Added handling for successful non-json responses
if (res.ok) {
await mutate('/api/user/profile');
}
} catch (err) {
console.error(err);
} finally {
// Ensure spinner is cleared in all success/error paths
setLoading(false);
}
};
return { updateEmail, loading };
};
| Component | Action | Result |
|---|---|---|
use-profile.ts | Added finally block | Spinner clears on completion |
profile-api.ts | Validated return type | Confirmed 204 status |
EmailField.tsx | Added error state | UI reflects failed updates |
Next steps
- Run
npm test src/hooks/use-profile.test.tsto verify the state transition. - Manually test the update with an existing email to ensure the error boundary catches the 409 Conflict.
- Check the browser console to confirm no orphaned promises remain after the PATCH request.
Connects securely to your tools. The creator never sees your data.
About this skill
Developers often receive vague requests like "my app is slow" or "the login is broken" that lack technical context. This skill bridges the gap by automatically transforming ambiguous user requirements into precise, context-aware technical prompts. It analyzes your existing codebase, identifies relevant files and stacks, and executes the fix or improvement in a single turn.
What it does
- Technical reformulation converts loose descriptions into structured engineering tasks with specific roles and deliverables.
- Context discovery scans project manifests and lockfiles to confirm the tech stack and versioning before suggesting changes.
- Root cause localization identifies the specific files, routes, or components governing a reported bug or feature request.
- Security integration automatically embeds defensive controls and validation checks when handling sensitive data or auth flows.
- Validation planning generates regression tests and observable verification steps for every code change.
How it works
- The developer provides a vague request or identifies a bug within a project context.
- The skill analyzes the project files to determine the architecture and relevant code paths.
- It reformulates the request into a high-precision prompt targeting specific files and outcomes.
- It applies the implementation or diagnostic fix immediately, unless a prompt-only output is requested.
Frameworks & tools
Works across any web stack including React, Next.js, Node.js, and various API architectures. It utilizes local project manifests (package.json, lockfiles) to ensure environmental consistency.
Why this beats prompting it yourself
Writing prompts that include regression testing, security checks, and stack-specific context is time-consuming and prone to oversight. This skill automates the discovery of your project's internal logic, ensuring instructions are grounded in your actual code rather than generic AI assumptions.
Use cases
- Bug triage converting "this screen is white" into a full diagnostic plan for rendering failures.
- API expansion turning "we need a new endpoint" into a documented contract with validation and error handling.
- Security audits identifying vulnerable inputs and applying defensive controls across authentication flows.
- UI refactoring updating components while maintaining keyboard accessibility and mobile responsiveness.
Known limitations
Requires access to project files to provide high-precision results. Does not perform external network-based penetration testing.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 9 days ago
Permissions
No special permissions declared or detected
What's inside
Creator
Cjrh
Frequently Asked Questions
New in Prompt & Skill Engineering
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Prompt & Skill Engineering.