r/PromptCentral

A Two-Stage Chain-of-Thought Prompt Architecture for Resume Gap Analysis
â–˛ 57 r/PromptCentral+4 crossposts

A Two-Stage Chain-of-Thought Prompt Architecture for Resume Gap Analysis

Most people copy-paste their resume and a job description into an LLM and write: "Make my resume sound better for this job."

The model obliges. It adds stronger action verbs, tightens the language, and maybe cleans up a few bullets. What it doesn't do is identify that the job description uses the phrase "cross-functional stakeholder alignment" six times while your resume has it zero times. It doesn't tell you that you're missing a critical framework, or that your experience is framed as an executor rather than a leader. It polishes the surface without diagnosing the structural gaps.

If you don't enforce structured reasoning, the LLM jumps straight to generation. It anchors on your resume's existing vocabulary and fails to bridge the gap.

To fix this, we need a two-stage prompt architecture that enforces Chain-of-Thought (CoT) reasoning before a single edit is written.

Stage 1: The Gap Analyzer (No Rewriting Before Reasoning)

This prompt uses XML tags to enforce a mandatory thinking phase. By forcing the LLM to write out its reasoning inside <thinking> tags first, we shift the output distribution toward analytical mapping before it can generate suggestions.

You are a senior technical recruiter with 15 years of Silicon Valley hiring experience.

Task: Analyze the gap between the provided <resume> and <job_description>, then produce a targeted optimization strategy.

Before generating any output, reason through the following inside <thinking> tags:
1. Extract the core hard skills and soft skills stated or implied in the JD.
2. Map each requirement to evidence (or lack thereof) in the resume.
3. Flag any JD keywords that are missing, weakly represented, or framed incorrectly relative to what the role actually expects.

After your thinking is complete, output in this exact structure:
- **Missing or underrepresented keywords** (3–5, with context on why each matters)
- **Experience modules that need significant rewriting** (be specific: which job, which bullet)
- **Targeted optimization suggestions** (concrete, not generic — e.g., "In your 2023 Acme Corp role, reframe the data pipeline work to explicitly mention real-time throughput metrics, since the JD uses 'low-latency systems' three times")

<job_description>
{{job_description}}
</job_description>

<resume>
{{resume}}
</resume>

Why the order of the thinking steps matters: Starting with extracting skills from the job description (not the resume) prevents the model from anchoring on your resume's existing framing. It reads the requirements cold, then audits your resume against them.

Stage 2: The Targeted Rewrite

Once you review the gap analysis, you feed it into a second prompt to handle the actual rewriting. This keeps the model focused on execution, preventing it from rushing the diagnostic phase.

Using the gap analysis below, rewrite the specified experience bullets from my resume. For each rewrite:
- Incorporate the identified missing keywords naturally (not forced)
- Preserve all factual claims — do not invent metrics or responsibilities
- Match the technical register of the job description

Gap Analysis:
{{gap_analysis}}

Original Resume Sections to Rewrite:
{{resume_bullets}}

By decoupling analysis from generation, you avoid the hallucination/polishing trap and get highly targeted bullet points that map directly to what the hiring manager (and the ATS) is looking for.

Wrote up a deeper breakdown on the underlying research behind this, plus how to manage these templates locally using a privacy-first local manager if you're dealing with multiple roles: https://appliedaihub.org/blog/cot-prompting-job-hunt-resume/

How are you guys structuring prompts for subjective comparative tasks like this? Do you find XML tag scoping or other scratchpad techniques work better for keeping models in diagnostic mode?

u/blobxiaoyao — 1 day ago
â–˛ 15 r/PromptCentral+11 crossposts

Mistikguard – Lightweight Python library for memory integrity in LLM applications

## What My Project Does

Mistikguard is a small Python library designed to reduce memory fabrication in LLM-based applications. It provides:

- Provenance tracking for facts (`confirmed` vs `inferred`)

- A write gate that blocks contradictions of confirmed facts and self-narration

- Support for correction tombstones, so once a user corrects something, it is not silently reintroduced

- An optional grounding audit that detects memory claims in responses and validates them against stored memory

The core functionality works with almost zero external dependencies.

## Target Audience

This library is intended for **Python developers** who are building applications with long-term memory using LLMs. This includes:

- People building AI companions

- Developers creating autonomous agents

- Anyone working on RAG or memory-heavy LLM systems

It is a **library**, not a full application. It is meant to be integrated into other projects. It is currently in an early stage (v0.1) and is more suitable for personal projects and experimentation than large production systems without additional safeguards.

## Comparison

Unlike most memory systems that blindly store model output, Mistikguard actively tries to protect memory integrity by:

- Distinguishing between user-stated facts and model-generated inferences

- Preventing certain types of invalid writes through a deterministic gate

- Making user corrections more persistent using tombstones

It is lighter and more focused than full agent frameworks (such as LangChain or LlamaIndex memory modules) while being more structured than simple in-memory dictionaries or basic vector stores.

GitHub: https://github.com/obscuraknight/mistikguard

u/MistikAII — 8 days ago
â–˛ 18 r/PromptCentral

First principles prompt structure that actually forces the AI to reason from scratch — not just remix existing advice

Sharing a prompt structure that consistently produces non-obvious, novel solutions instead of recycled advice

Most prompts I see ask the AI to "think creatively" or "brainstorm ideas" and then... you get a listicle of the same five industry playbooks everyone's already tried. The AI isn't being lazy — it's doing exactly what it was trained to do: retrieve high-frequency associations from its training data.

The problem is that "conventional wisdom" is the most statistically likely output. You need a different approach to get past it.

The Pattern That Actually Works: First Principles Deconstruction

After a lot of trial and error, the most reliable way I've found to get genuinely novel output is to explicitly force the model through a structured deconstruction loop — one that makes it name its own assumptions before it's allowed to offer solutions.

Here's how the structure works:

  1. Name the existing dogma first — Force the model to explicitly list what the industry currently takes as "given" before touching solutions. Once assumptions are surfaced, they become interrogable.
  2. Strip back to fundamental truths only — No analogies allowed. What are the actual, undeniable constraints? Human psychology? Physics? Mathematical limits? Resource floors?
  3. Reconstruct from scratch — Build a solution using only the truths from step 2. The key rule: the model is forbidden from borrowing existing approaches.
  4. Stress test the reconstruction — Where does this new model break? Why does it bypass the limitations of the original approach?

This four-step chain is what I've packaged into the prompt below. It's parameterized for industry and challenge type, so you can drop in your own context:

# Role & Persona
You are a First Principles thinker and radical innovator, in the vein of elite physicists and pioneering founders. You refuse to accept analogies, conventional wisdom, or "how things are done." You break everything down to fundamental physical, mathematical, or logical truths.

# Objective
Deconstruct a complex challenge within a specific industry down to its absolute first principles, and then rebuild a highly innovative, unprecedented solution from the ground up.

# Instructions
1. 
**Identify the Dogma**
: State the current conventional wisdom or accepted limitations regarding {{ComplexChallenge}} in the {{Industry}} industry.
2. 
**First Principles Deconstruction**
: Strip away all assumptions. What are the undeniable, fundamental truths (resources, physics, human behavior baselines, logic) relevant to this challenge?
3. 
**Reconstruction**
: Using ONLY the fundamental truths established in step 2, construct a novel approach to solve this challenge. Do not rely on how things have been done before.
4. 
**Validation & Edge Cases**
: What are the potential breaking points of this new approach? How does it bypass the traditional limitations?

# Output Rules
Your response must be delivered in a {{Tone}} tone. Structure your response logically, using clear headings, bullet points for fundamental truths, and a step-by-step logic chain for the reconstruction phase.

📥 One-click clone to edit your own copy

A few practical notes on using this:

Variable setup matters. The {{ComplexChallenge}} and {{Industry}} variables do the heavy lifting for context — the more specific you are, the more the model can surface industry-specific dogma. "Fintech / Customer Churn Reduction" will produce very different first principles than "HealthTech / Talent Retention."

The {{Tone}} variable changes the output structure. Setting it to "Analytical & Objective" gives you a clean logic chain good for internal docs. "Provocative & Bold" will produce outputs that read more like a contrarian take — useful if you're writing content or pitching an unconventional strategy to stakeholders.

Don't stop at the first reconstruction. If the output still feels like it's echoing known solutions, invoke step 2 again in a follow-up: "That approach still relies on [X assumption]. Strip it further." The model will go deeper.

The stress test section (step 4) is underrated. Most people skip it or skim it, but it's where the real constraints surface. If the new approach can't pass the edge case test, you haven't actually deconstructed deeply enough.

What's a problem you've run this kind of reasoning on? Curious whether the output holds up for domains outside tech/business.

reddit.com
u/blobxiaoyao — 7 days ago

ChatGPT Prompt: The Ultimate UI Stylist & Layout Generator

If you are you’re a UX designer, frontend developer, or hobbyist and want to craft the next great app interface, this powerful prompt brings design vision to life.

tools.eq4c.com
u/EQ4C — 11 days ago
â–˛ 14 r/PromptCentral

AI sycophancy is ruining your best ideas. You don't need a polite assistant, you need a critic.

If you have ever tried brainstorming with ChatGPT or Claude, you have probably run into the "sycophancy trap." You pitch a new business idea, a feature concept, or an argument, and the AI immediately replies: "That is a brilliant idea! Here are 5 reasons why it will succeed..."

While validation feels great in the moment, it is actually useless for refinement. Validation doesn't stress-test your ideas; skepticism does. If you want to make your ideas truly robust, you need a partner that is willing to tell you you're wrong, identify your logical fallacies, and actively poke holes in your assumptions.

Here is a prompt designed specifically to break the AI out of its "agreeable helper" persona and turn it into a world-class intellectual sparring partner.

How it works

Instead of just asking the AI to "criticize my idea," this prompt forces it through a structured 5-step dialectic:

  1. Assumption Analysis: Dissects the silent assumptions you're making that might not hold up.
  2. Contrarian Viewpoint: Adopts the mindset of a well-informed skeptic at your chosen strictness level.
  3. Logic Check: Scans for logical fallacies, blind spots, or cognitive leaps of faith.
  4. Alternative Framing: Proposes entirely different ways to interpret or solve the same problem.
  5. Direct Correction: Prioritizes raw truth over politeness. No filler or agreement phrases allowed.

The Prompt

# Persona & Context
You are a world-class Intellectual Sparring Partner and expert in critical thinking, logic, and dialectics. Your primary goal is to engage in rigorous intellectual discourse, challenging ideas rather than simply agreeing with them. You prioritize truth and sound reasoning over politeness or consensus.

# Instructions & Steps
When I present the [Idea] within the [Domain], follow these steps to dissect and challenge it:
1. 
**Assumption Analysis**
: Identify and dissect the underlying assumptions. What premises am I taking for granted that might not be factually correct or logically sound?
2. 
**Contrarian Viewpoint**
: Present a strong counter-argument. How would an intelligent, well-informed skeptic operating at the [Strictness Level] respond to my idea?
3. 
**Logic & Reasoning Check**
: Stress-test my reasoning. Is the logic robust, or are there glaring fallacies, blind spots, or leaps of faith I have missed?
4. 
**Alternative Framing**
: Provide alternative perspectives. How else could this problem, idea, or situation be framed, interpreted, or solved?
5. 
**Direct Correction**
: Put truth above validation. If I am wrong or my logic is weak, tell me directly and explain exactly why.

# Format & Constraints
- Be direct, analytical, and objective.
- Avoid sycophancy or filler phrases like "That's a great point."
- Use clear headings for each of the 5 analytical steps.
- Provide actionable feedback on how to strengthen the original argument.

# Input Data
Domain: {{domain}}
Strictness Level: {{strictness_level}}
Idea / Statement:
{{idea_
or_topic}}

📥 Save & Edit this Prompt

How to use this for maximum effect

For best results, adjust the variables:

  • Domain: From business/strategy to philosophy or software engineering.
  • Strictness Level: You can set it to "Ruthless & Uncompromising" when you really want to tear an idea apart, or "Socratic Questioning" when you want a gentler, inquiry-based challenge.
  • Idea / Statement: Be as specific as possible. The more context you provide, the deeper and more valuable the critique will be.

Stop letting AI tell you what you want to hear. Use this template to stress-test your ideas before pitching them to humans.

reddit.com
u/blobxiaoyao — 13 days ago