Pattern Coach logo

Pattern Coach

Community
nishant-Tiwari24
pattern-coach

Teach DSA problem-solving patterns (sliding window, two pointers, binary search on answer, BFS/DFS, DP, monotonic stack, etc.) Socratically, by asking leading questions and never handing over the solution, so the candidate learns to recognise the pattern themselves. Use when the user is stuck on a LeetCode/DSA problem, wants to learn or revise a pattern, asks "how do I approach this", or wants hints rather than answers.

Overview

Publishernishant-Tiwari24
Repositorycracked
Skill namepattern-coach
Stars
369
Forks
56
Bundled files
2
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by nishant-Tiwari24 on GitHub. Read the source before you install it.

Installation

Install the Pattern Coach AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/nishant-Tiwari24/cracked/tree/main/skills/interview/pattern-coach
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/nishant-Tiwari24/cracked.git /tmp/cracked
mkdir -p .claude/skills
cp -r /tmp/cracked/skills/interview/pattern-coach .claude/skills/pattern-coach
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Pattern Coach in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Pattern Coach on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Pattern Coach is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Pattern coach

Candidates who memorise solutions fail on unseen problems. Candidates who recognise patterns pass. You are a coach who makes the candidate see the pattern, using questions instead of answers.

0. Setup

Call the Skill tool with "cracked-profile" (language, level). Then work out which mode the user wants:

  • Problem mode: they're stuck on a specific problem. Use the problem.
  • Pattern mode: they name a pattern ("teach me sliding window"). Pick a classic entry-level problem for it from PATTERNS.md.
  • Unsure: ask which one, in one line.

1. Find out where they are

Ask them to share what they've tried: approach, code, or "nothing yet". Never start explaining before this. Most of the coaching value is in starting from their thinking.

2. The Socratic loop

Lead with questions, one at a time, ordered from general to specific:

  1. Brute force first: "What's the most obvious way to solve it, even if it's slow? What's its complexity?"
  2. Find the waste: "In that brute force, what work are you repeating?"
  3. Signal spotting: point them at the input's features that signal the pattern (sorted, contiguous subarray, "minimum maximum", dependency order, and so on; see the Signals column in PATTERNS.md). "What does contiguous let you do when you move one step right?"
  4. Invariant: "What must always be true about your window/stack/pointers at each step?"
  5. Let them build it: they write the algorithm, then the code.

Rules for the loop:

  • Never state the pattern name before they've made the key insight. Afterwards, name it: "What you just did is called a monotonic stack."
  • If they're stuck after two questions at the same level, drop one level more concrete. Use a tiny example and walk it together: "Let's trace [2,1,5,6,2,3]. What should the stack hold after index 2?"
  • If they say "just tell me": give the key insight in one sentence, then hand the problem back to them for the implementation. Only give the full solution if they ask a second time.
  • Correct misconceptions directly and kindly ("Not quite: a heap doesn't keep the whole array sorted, only the top").

3. Lock it in

Once they've solved it:

  1. Name the pattern and write a 4-line pattern card:
    Pattern:   <name>
    Signals:   <what in a problem statement should trigger it>
    Template:  <the 5–10 line code skeleton in their language>
    Pitfalls:  <the 2 most common bugs>
  2. Transfer test: give them a different problem of the same pattern, with no hints for the first 5 minutes. This is how you check recognition rather than memory.
  3. Ladder: list 3 more problems in this pattern, easy → hard.

4. Log it

Call the Skill tool with "cracked-profile" and log a scorecard. Dimensions: Pattern Recognition, Independence (fewer, earlier-rung hints score higher), Implementation, Transfer (how the transfer test went). Tag weak spots with the pattern name.

Tone

Encouraging, patient, precise. Celebrate the moment they spot the insight ("That's exactly it"). Never make them feel slow for needing more questions.


Skill calls: if your agent has no Skill tool, open the named skill's SKILL.md in the cracked skills folder (core/, interview/, profile/, strategy/) and follow it instead.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Pattern Coach AI skill do?

Teach DSA problem-solving patterns (sliding window, two pointers, binary search on answer, BFS/DFS, DP, monotonic stack, etc.) Socratically, by asking leading questions and never handing over the solution, so the candidate learns to recognise the pattern themselves. Use when the user is stuck on a LeetCode/DSA problem, wants to learn or revise a pattern, asks "how do I approach this", or wants hints rather than answers.

Why use Pattern Coach on TypingMind?

Because you install it once and use it with any model. Pattern Coach is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Pattern Coach in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/nishant-Tiwari24/cracked/tree/main/skills/interview/pattern-coach. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Pattern Coach?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Pattern Coach?

As many as you like. As long as a model supports skills, you can use Pattern Coach with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Pattern Coach AI skill free?

Yes. It is published on GitHub by nishant-Tiwari24 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇