model-routing-context SKILL.md skillA
model-routing-context from baphuongna/pi-crew is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add baphuongna/pi-crew/model-routing-context@git:20261002.cf17b54Pins git:20261002.cf17b54 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- baphuongna/pi-crew
- Path
skills/model-routing-context/SKILL.md- Versions recorded
- 8
- Latest version
- git:20261002.cf17b54, committed Oct 2, 2026
- First version recorded
- May 5, 2026
- Size
- 6,607 bytes
- Repository stars
- 57
- License
- MIT
Model routing, parent context, thinking level, and prompt construction workflow. Use when changing model fallback, child Pi args, inherited context, task prompts, or compaction/compact-string behavior. When NOT to use: project-level config (use resource-discovery-config); routing for non-pi-crew agents.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# model-routing-context Use this skill when working on model/context propagation. ## Source patterns distilled - Pi session context/model state: `source/pi/packages/coding-agent/src/core/session-manager.ts`, `agent-session.ts`, compaction modules - pi-crew model and prompt code: `src/runtime/model-fallback.ts`, `src/runtime/pi-args.ts`, `src/runtime/task-runner/prompt-builder.ts`, `src/runtime/task-output-context.ts`, `src/extension/team-tool/context.ts` ## Rules - Preserve parent model inheritance unless an agent/task/user explicitly provides a non-empty model override. - Treat empty strings and whitespace model values as absent. - Carry relevant parent conversation context as reference-only; do not let it override explicit task instructions or safety constraints. - Distinguish the two compaction layers: host-Pi session compaction (`source/pi/.../session-manager.ts`, `agent-session.ts`, compaction modules) is a reference-only concept — it is not a pi-crew API. …
Read the whole file at its exact version.
How to install
mdr add baphuongna/pi-crew/model-routing-context@sha256:d23131f2d8a63457The line at the top of this page pins the label git:20261002.cf17b54, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_2as7mn5nxn7amfg4)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 8 versions of this file, between May 5, 2026 and Oct 2, 2026, about one every 21 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261002.cf17b54 latest | 2026-10-02 | cf17b54 | 6,607 B | A | view · diff |
| git:20260911.3de89a2 | 2026-09-11 | 3de89a2 | 6,189 B | A | view · diff |
| git:20260911.c97bc57 | 2026-09-11 | c97bc57 | 5,718 B | A | view · diff |
| git:20260603.fa30bc0 | 2026-06-03 | fa30bc0 | 5,608 B | A | view · diff |
| git:20260529.53de3c2 | 2026-05-29 | 53de3c2 | 5,597 B | A | view · diff |
| git:20260528.67ddbec | 2026-05-28 | 67ddbec | 5,488 B | A | view · diff |
| git:20260514.3b16876 | 2026-05-14 | 3b16876 | 4,846 B | A | view · diff |
| git:20260505.33e7203 | 2026-05-05 | 33e7203 | 2,006 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (6607 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
baphuongna/pi-crew · 57 stars · license MIT · pushed 2026-11-06 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_2as7mn5nxn7amfg4 GET https://markdownregistry.com/api/v1/resolve?ref=baphuongna/pi-crew/model-routing-context GET https://markdownregistry.com/api/v1/blob/d23131f2d8a63457512751f84fc884740fc326303d3e6f2b13803b74a8b0d447
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.