Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

interleaved-thinking Skill

Repository ↗

by muratcankoylan★ 18,374 (whole repo)Skill 1 of 22 in Agent-Skills-for-Context-Engineering

★ Stars are for the whole repo, not this skill

← All skills in Agent-Skills-for-Context-Engineering

Install

What it does

interleaved-thinking is 1 of 22 skills in the Agent-Skills-for-Context-Engineering repo

Debug and optimize AI agents by analyzing reasoning traces, context degradation, tool confusion, instruction drift, repeated task failures, and performance regressions.

  • Connects Instruction files the AI reads
  • Account or key No key found in README or SKILL.md
  • Category Coding

Use together with

MCP servers that connect the AI to services for the same work

REA

Reverse engineer anything from your terminal or agent with one CLI and MCP server.

by morlutoWidely used↓ 388.7K/wk★ 468KUpdated 7 days ago

MCP · Connects a serviceRuns on your computer

Fallow

Codebase intelligence for TypeScript and JavaScript, exposed as structured MCP analysis tools.

by fallow-rsWidely used↓ 2.4M/wk★ 5.4KUpdated 2 days ago

MCP · Connects a serviceRuns on your computer

Desktop Commander

MCP server for terminal commands, file operations, and process management

by wonderwhy-erWidely used↓ 740.3K/wk★ 10.3KUpdated yesterday

MCP · Connects a serviceRuns on your computer

1 skills (instruction sets) by muratcankoylan that an AI reads and follows · not an MCP server

How a Skill differs from MCP

MCP = the hands

Connects the AI to an outside service or data, such as reading Notion or creating an invoice. A program or server has to be running.

Skill = the manual

A text file that teaches the AI how to do a task. It connects to nothing.

Some overlap: a few Skills run scripts that call tools, and a few MCP servers only send knowledge. Start from the task you want done.

Works with

Claude CodeCodexCursorGitHub Copilot

From the maker’s README and the folders in the repo

Install

Is it safe?

  • Who made it

    GitHub account muratcankoylan (person), 3 years old

  • Use and upkeep

    ★ 18,374 stars · code last changed Oct 12, 2026

  • Any scripts?

    13 scripts that can run on a computer: examples/01_basic_capture.py, examples/02_tool_usage.py, examples/03_full_optimization.py, reasoning_trace_optimizer/__init__.py and 9 more

  • Uses the internet?

    No internet calls found in the scripts

  • Changes machine-wide settings?

    No hooks or writes to machine settings found

Checked automatically from the repo files at commit 9ff0c99 (read only, nothing was run). Not a safety guarantee: read it and decide for yourself

First: which AI do you use?

Pick your app and this page shows only how to install it there

Option 1Upload to claude.ai (web and app)

  • Files are byte-for-byte the same as on GitHub at commit 9ff0c99 · View on GitHub ↗

  • 13 scripts

  • Once uploaded it runs on Claude’s systems, not on your computer. No need to unzip

Look inside before downloading

All 64 files · 587 KB

  • README.md20 KB
  • SKILL.md6 KB
  • docs/agentthinking.md6 KB
  • docs/interleavedthinking.md30 KB
  • docs/m2-1.md9 KB
  • examples/01_basic_capture.py2 KB
  • examples/02_tool_usage.py6 KB
  • examples/03_full_optimization.py39 KB
  • generated_skills/comprehensive-research-agent/SKILL.md8 KB
  • generated_skills/comprehensive-research-agent/references/optimization_summary.json1 KB
  • generated_skills/comprehensive-research-agent/references/optimized_prompt.txt1 KB
  • generated_skills/comprehensive-research-agent/references/patterns_found.json12 KB
  • optimization_artifacts/final_prompt.txt3 KB
  • optimization_artifacts/iteration_1/analysis.txt3 KB
  • optimization_artifacts/iteration_1/optimization.txt1 KB
  • optimization_artifacts/iteration_1/optimized_prompt.txt1 KB
  • optimization_artifacts/iteration_1/trace.txt28 KB
  • optimization_artifacts/iteration_10/analysis.txt4 KB
  • optimization_artifacts/iteration_10/trace.txt28 KB
  • optimization_artifacts/iteration_2/analysis.txt3 KB
  • optimization_artifacts/iteration_2/optimization.txt7 KB
  • optimization_artifacts/iteration_2/optimized_prompt.txt3 KB
  • optimization_artifacts/iteration_2/trace.txt22 KB
  • optimization_artifacts/iteration_3/analysis.txt3 KB
  • optimization_artifacts/iteration_3/optimization.txt8 KB
  • optimization_artifacts/iteration_3/optimized_prompt.txt4 KB
  • optimization_artifacts/iteration_3/trace.txt28 KB
  • optimization_artifacts/iteration_4/analysis.txt3 KB
  • optimization_artifacts/iteration_4/optimization.txt6 KB
  • optimization_artifacts/iteration_4/optimized_prompt.txt3 KB
  • optimization_artifacts/iteration_4/trace.txt23 KB
  • optimization_artifacts/iteration_5/analysis.txt4 KB
  • optimization_artifacts/iteration_5/optimization.txt6 KB
  • optimization_artifacts/iteration_5/optimized_prompt.txt3 KB
  • optimization_artifacts/iteration_5/trace.txt31 KB
  • optimization_artifacts/iteration_6/analysis.txt1 KB
  • optimization_artifacts/iteration_6/optimization.txt1 KB
  • optimization_artifacts/iteration_6/optimized_prompt.txt1 KB
  • optimization_artifacts/iteration_6/trace.txt19 KB
  • optimization_artifacts/iteration_7/analysis.txt3 KB
  • optimization_artifacts/iteration_7/optimization.txt5 KB
  • optimization_artifacts/iteration_7/optimized_prompt.txt3 KB
  • optimization_artifacts/iteration_7/trace.txt21 KB
  • optimization_artifacts/iteration_8/analysis.txt3 KB
  • optimization_artifacts/iteration_8/optimization.txt6 KB
  • optimization_artifacts/iteration_8/optimized_prompt.txt3 KB
  • optimization_artifacts/iteration_8/trace.txt22 KB
  • optimization_artifacts/iteration_9/analysis.txt3 KB
  • optimization_artifacts/iteration_9/optimization.txt6 KB
  • optimization_artifacts/iteration_9/optimized_prompt.txt3 KB
  • optimization_artifacts/iteration_9/trace.txt26 KB
  • optimization_artifacts/summary.json1 KB
  • pyproject.toml2 KB
  • reasoning_trace_optimizer/__init__.py1 KB
  • reasoning_trace_optimizer/analyzer.py16 KB
  • reasoning_trace_optimizer/capture.py14 KB
  • reasoning_trace_optimizer/cli.py8 KB
  • reasoning_trace_optimizer/loop.py18 KB
  • reasoning_trace_optimizer/models.py5 KB
  • reasoning_trace_optimizer/optimizer.py14 KB
  • reasoning_trace_optimizer/skill_generator.py16 KB
  • tests/__init__.py1 KB
  • tests/test_models.py4 KB
  • LICENSE1 KB
  1. Download reasoning-trace-optimizer.zip

    587 KB · 64 files · MIT license (license file included in the folder)

    Download reasoning-trace-optimizer.zip

  2. Open Skills on claude.ai and upload

    +Create skillUpload a skillpick reasoning-trace-optimizer.zip

    Open claude.ai/customize/skills ↗

  3. No Upload button? Turn on file creation first

    SettingsCapabilitiesCode execution and file creation

    Turn on Code execution and file creation first (newer menus: Create and edit files) · personal plans: Settings → Capabilities · Team/Enterprise: an admin turns it on under Organization settings → Plugins & skills · every plan, including Free

Upload once; it works in claude.ai and Claude Desktop, and in recent Claude Code signed in with a Claude account (not with an API key)

Cowork and cloud sessions use the skills turned on in your claude.ai account, not ~/.claude/skills on your computer (Claude Desktop scheduled tasks run locally and still load it)

Checked against official docs Nov 12, 2026 · Source: support.claude.com, support.claude.com, code.claude.com

Option 1Let Claude Code install it

Copy this sentence and paste it into a Claude Code chat

Where to install
Please install the skill reasoning-trace-optimizer from https://github.com/muratcankoylan/agent-skills-for-context-engineering folder examples/interleaved-thinking (commit 9ff0c99) for all my projects, at ~/.claude/skills/reasoning-trace-optimizer. First show me every file and tell me whether it has scripts or changes machine settings, then tell me the full path you will install to and wait for me to agree.
Please install the skill reasoning-trace-optimizer from https://github.com/muratcankoylan/agent-skills-for-context-engineering folder examples/interleaved-thinking (commit 9ff0c99) into the project this chat is open in (at .claude/skills/reasoning-trace-optimizer). First show me every file and tell me whether it has scripts or changes machine settings, then tell me the project name and the full path you will install to and wait for me to agree.

For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing

The AI tells you what it will do first and asks your permission at every step

Restart Claude Code, then type /interleaved-thinking or ask for a matching task and Claude picks it up

Checked against official docs Nov 12, 2026 · Source: code.claude.com

For Terminal users

A Skill is instructions the AI will follow. Read the files before installing, and install only from makers you trust.

The maker’s recommended way

/plugin marketplace add muratcankoylan/Agent-Skills-for-Context-Engineering
/plugin install context-engineering@context-engineering-marketplace

Copied from the maker’s README; it downloads and runs the maker’s code

  1. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: the command below does not work in PowerShell; use “Let AI install it” above instead

  2. Copy the skill folder to ~/.claude/skills

    This downloads the repo to a temporary folder and copies only the folders that contain a SKILL.md

    git clone --depth 1 https://github.com/muratcankoylan/agent-skills-for-context-engineering.git /tmp/popnx-skill-muratcankoylan-agent-skills-for-context-engineering-interleaved-thinking-9ff0c99 && mkdir -p ~/.claude/skills && cp -R '/tmp/popnx-skill-muratcankoylan-agent-skills-for-context-engineering-interleaved-thinking-9ff0c99/examples/interleaved-thinking' ~/.claude/skills/interleaved-thinking
  3. Restart Claude Code, then type /interleaved-thinking or ask for a matching task and Claude picks it up

Skills you install yourself work in the ChatGPT desktop app, Codex CLI and the Codex IDE extension · ChatGPT on the web and mobile cannot use skills you install yourself, only skills that come with a plugin from the directory

ChatGPT desktop app

The ChatGPT desktop app has Codex built in, and Codex reads skills from ~/.agents/skills

Option 1Let ChatGPT install it

Open Codex in the ChatGPT desktop app and paste this sentence into the chat

Where to install
Please install the skill reasoning-trace-optimizer from https://github.com/muratcankoylan/agent-skills-for-context-engineering folder examples/interleaved-thinking (commit 9ff0c99) for all my projects, at ~/.agents/skills/reasoning-trace-optimizer. First show me every file and tell me whether it has scripts or changes machine settings, then tell me the full path you will install to and wait for me to agree.
Please install the skill reasoning-trace-optimizer from https://github.com/muratcankoylan/agent-skills-for-context-engineering folder examples/interleaved-thinking (commit 9ff0c99) into the project this chat is open in (at .agents/skills/reasoning-trace-optimizer). First show me every file and tell me whether it has scripts or changes machine settings, then tell me the project name and the full path you will install to and wait for me to agree.

The AI always shows you the path before installing

The AI tells you what it will do first and asks your permission at every step

Option 2Put the folder there yourself

Put the reasoning-trace-optimizer folder at ~/.agents/skills/reasoning-trace-optimizer

~ is your home folder ($HOME)

Without Terminal: download the ZIP, unzip it and move the reasoning-trace-optimizer folder to ~/.agents/skills

Download reasoning-trace-optimizer.zip

For Terminal users

A Skill is instructions the AI will follow. Read the files before installing, and install only from makers you trust.

  1. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: the command below does not work in PowerShell; use “Let AI install it” above instead

  2. Copy the skill folder to ~/.agents/skills

    This downloads the repo to a temporary folder and copies only the folders that contain a SKILL.md

    git clone --depth 1 https://github.com/muratcankoylan/agent-skills-for-context-engineering.git /tmp/popnx-skill-muratcankoylan-agent-skills-for-context-engineering-interleaved-thinking-9ff0c99 && mkdir -p ~/.agents/skills && cp -R '/tmp/popnx-skill-muratcankoylan-agent-skills-for-context-engineering-interleaved-thinking-9ff0c99/examples/interleaved-thinking' ~/.agents/skills/interleaved-thinking

After installing

  • ChatGPT desktop app: open Skills in the sidebar to see that the skill is there
  • To use it: in ChatGPT type @ and pick the skill · in Codex CLI or the IDE extension run /skills or type $ and the skill name
  • Codex picks up newly installed skills by itself; if one does not show up, restart Codex

Checked against official docs Nov 15, 2026 · Source: learn.chatgpt.com

ChatGPT on the web and mobile

Skills you install yourself do not work here; only skills that come with a plugin from the directory

To use this skill with ChatGPT, use the ChatGPT desktop app as above

Checked against official docs Nov 15, 2026 · Source: learn.chatgpt.com

Option 1Let Codex install it

Copy this sentence and paste it into a Codex chat · Works in Codex inside the ChatGPT desktop app, Codex CLI and the IDE extension

Where to install
Please install the skill reasoning-trace-optimizer from https://github.com/muratcankoylan/agent-skills-for-context-engineering folder examples/interleaved-thinking (commit 9ff0c99) for all my projects, at ~/.agents/skills/reasoning-trace-optimizer. First show me every file and tell me whether it has scripts or changes machine settings, then tell me the full path you will install to and wait for me to agree.
Please install the skill reasoning-trace-optimizer from https://github.com/muratcankoylan/agent-skills-for-context-engineering folder examples/interleaved-thinking (commit 9ff0c99) into the project this chat is open in (at .agents/skills/reasoning-trace-optimizer). First show me every file and tell me whether it has scripts or changes machine settings, then tell me the project name and the full path you will install to and wait for me to agree.

For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing

The AI tells you what it will do first and asks your permission at every step

Codex picks up newly installed skills by itself; if one does not show up, restart Codex · To use it: in ChatGPT type @ and pick the skill · in Codex CLI or the IDE extension run /skills or type $ and the skill name

Checked against official docs Nov 15, 2026 · Source: learn.chatgpt.com

For Terminal users

A Skill is instructions the AI will follow. Read the files before installing, and install only from makers you trust.

  1. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: the command below does not work in PowerShell; use “Let AI install it” above instead

  2. Copy the skill folder to ~/.agents/skills

    This downloads the repo to a temporary folder and copies only the folders that contain a SKILL.md

    git clone --depth 1 https://github.com/muratcankoylan/agent-skills-for-context-engineering.git /tmp/popnx-skill-muratcankoylan-agent-skills-for-context-engineering-interleaved-thinking-9ff0c99 && mkdir -p ~/.agents/skills && cp -R '/tmp/popnx-skill-muratcankoylan-agent-skills-for-context-engineering-interleaved-thinking-9ff0c99/examples/interleaved-thinking' ~/.agents/skills/interleaved-thinking
  3. Restart Codex, then ask for a matching task; Codex lists the skill

Option 1Let Cursor install it

Copy this sentence and paste it into a Cursor chat

Where to install
Please install the skill reasoning-trace-optimizer from https://github.com/muratcankoylan/agent-skills-for-context-engineering folder examples/interleaved-thinking (commit 9ff0c99) for all my projects, at ~/.cursor/skills/reasoning-trace-optimizer. First show me every file and tell me whether it has scripts or changes machine settings, then tell me the full path you will install to and wait for me to agree.
Please install the skill reasoning-trace-optimizer from https://github.com/muratcankoylan/agent-skills-for-context-engineering folder examples/interleaved-thinking (commit 9ff0c99) into the project this chat is open in (at .cursor/skills/reasoning-trace-optimizer). First show me every file and tell me whether it has scripts or changes machine settings, then tell me the project name and the full path you will install to and wait for me to agree.

For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing

The AI tells you what it will do first and asks your permission at every step

In Cursor’s Agent chat, type / and pick interleaved-thinking

Checked against official docs Nov 12, 2026 · Source: cursor.com

For Terminal users

A Skill is instructions the AI will follow. Read the files before installing, and install only from makers you trust.

  1. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: the command below does not work in PowerShell; use “Let AI install it” above instead

  2. Copy the skill folder to ~/.cursor/skills

    This downloads the repo to a temporary folder and copies only the folders that contain a SKILL.md

    git clone --depth 1 https://github.com/muratcankoylan/agent-skills-for-context-engineering.git /tmp/popnx-skill-muratcankoylan-agent-skills-for-context-engineering-interleaved-thinking-9ff0c99 && mkdir -p ~/.cursor/skills && cp -R '/tmp/popnx-skill-muratcankoylan-agent-skills-for-context-engineering-interleaved-thinking-9ff0c99/examples/interleaved-thinking' ~/.cursor/skills/interleaved-thinking
  3. In Cursor’s Agent chat, type / and pick interleaved-thinking

Option 1Let the AI install it

For other apps that read skills. The sentence gives the paths for Claude Code, Codex and Cursor so the AI picks the one for your app · Copy this sentence into the app’s chat

Where to install
Please install the skill reasoning-trace-optimizer from https://github.com/muratcankoylan/agent-skills-for-context-engineering folder examples/interleaved-thinking (commit 9ff0c99) for all my projects, at ~/.claude/skills/reasoning-trace-optimizer (in Codex use ~/.agents/skills/reasoning-trace-optimizer, in Cursor ~/.cursor/skills/reasoning-trace-optimizer). First show me every file and tell me whether it has scripts or changes machine settings, then tell me the full path you will install to and wait for me to agree.
Please install the skill reasoning-trace-optimizer from https://github.com/muratcankoylan/agent-skills-for-context-engineering folder examples/interleaved-thinking (commit 9ff0c99) into the project this chat is open in (at .claude/skills/reasoning-trace-optimizer; in Codex use .agents/skills/reasoning-trace-optimizer, in Cursor .cursor/skills/reasoning-trace-optimizer). First show me every file and tell me whether it has scripts or changes machine settings, then tell me the project name and the full path you will install to and wait for me to agree.

For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing

The AI tells you what it will do first and asks your permission at every step

Checked against official docs Nov 12, 2026 · Source: code.claude.com, learn.chatgpt.com, cursor.com

For Terminal users

Other apps that support Agent Skills (such as Gemini CLI or GitHub Copilot) use different folders. Check that app’s guide, then copy the folder with the SKILL.md there.

View on GitHub ↗

Skill folders checked against the official Claude Code, Codex and Cursor guides on Nov 11, 2026

✓ Commands checked Nov 17, 2026

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

From GitHub

GitHub stars
18,374
Stars are for the whole repo, not this skill
Maker
muratcankoylan
Last code change
Oct 12, 2026
SKILL.md files in the repo (including translated copies and templates)
1