optimize-skill SKILL.md skillA

optimize-skill from apache/magpie is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add apache/magpie/optimize-skill@git:20261027.5395957

Pins git:20261027.5395957 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
apache/magpie
Path
plugins/magpie-utilities/skills/optimize-skill/SKILL.md
Versions recorded
15
Latest version
git:20261027.5395957, committed Oct 27, 2026
First version recorded
Sep 13, 2026
Size
14,650 bytes
Repository stars
138
License
Apache-2.0

Make an existing framework skill leaner without changing its behavior. Diagnose context-cost smells, propose the applicable optimization passes, and validate before and after every approved change.

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

<!-- SPDX-License-Identifier: Apache-2.0
     https://www.apache.org/licenses/LICENSE-2.0 -->

<!-- Placeholder convention (see AGENTS.md#placeholder-convention-used-in-skill-files):
     <project-config> → per file: the personal layer, else `.apache-magpie-overrides/`
     <tracker>        → value of `tracker_repo:` in <project-config>/project.md
     <upstream>       → value of `upstream_repo:` in <project-config>/project.md
     <framework>      → `.` standalone, `.apache-magpie/` (snapshot),
                        `~/.cache/apache-magpie/framework/current` (marketplace) -->

# optimize-skill

<!-- BEGIN MAGPIE PREFLIGHT — generated from tools/dev/preflight-block.md -->

## Pre-flight — is this project set up?

Do this **first, before anything else in this skill**, and do it silently.
One command answers it and carries its own rules; there is nothing else to
read.

Run the checker with this skill's own frontmatter `name:` and
`surface_hash:`, and one `--requires` for each `requires_config:` entry:

```bash
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add apache/magpie/optimize-skill@sha256:caeee1db7bc77bc2

The line at the top of this page pins the label git:20261027.5395957, 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_imvffxat32w67hv6.svg)](https://markdownregistry.com/a/art_imvffxat32w67hv6)

4 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 15 versions of this file, between Sep 13, 2026 and Oct 27, 2026, about one every 3 days.

versioncommittedcommitsizeaudit
git:20261027.5395957 latest2026-10-27 5395957 14,650 BA view · diff
git:20261027.4fc00322026-10-27 4fc0032 14,205 BA view · diff
git:20261025.cb51b532026-10-25 cb51b53 14,145 BA view · diff
git:20261024.c1a5a0a2026-10-24 c1a5a0a 14,011 BA view · diff
git:20261016.b4fca1e2026-10-16 b4fca1e 13,955 BA view · diff
git:20261005.3ac6eee2026-10-05 3ac6eee 13,804 BA view · diff
git:20260928.87bfb592026-09-28 87bfb59 13,311 BA view · diff
git:20260926.94b18362026-09-26 94b1836 12,625 BA view · diff
git:20260926.eca20092026-09-26 eca2009 16,389 BA view · diff
git:20260924.bcd8b7f2026-09-24 bcd8b7f 16,367 BA view · diff
git:20260923.f4df4522026-09-23 f4df452 16,367 BA view · diff
git:20260922.e6fbb4e2026-09-22 e6fbb4e 16,374 BA view · diff
git:20260922.11ce5f82026-09-22 11ce5f8 15,329 BA view · diff
git:20260922.2c996292026-09-22 2c99629 13,584 BA view · diff
git:20260913.a4dd8ba2026-09-13 a4dd8ba 18,334 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (14650 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

GitHub

apache/magpie · 138 stars · license Apache-2.0 · pushed 2026-11-05 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_imvffxat32w67hv6
GET https://markdownregistry.com/api/v1/resolve?ref=apache/magpie/optimize-skill
GET https://markdownregistry.com/api/v1/blob/caeee1db7bc77bc23ffc3519b7f712447eb75192840797aae231a32aa1073267

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.

More from apache/magpie

AGENTS.md AGENTS.md file
apache/magpie · AGENTS.md
git:20261027.5bb1ea3 · audit F · 138 stars
activity-sweep SKILL.md skill
apache/magpie · plugins/magpie-contributor-growth/skills/activity-sweep/SKILL.md · Read-only activity card for a named contributor on `<upstream>` across code-host and tracker surfaces. Code-host and…
git:20261027.5395957 · audit A · 138 stars
calibrate SKILL.md skill
apache/magpie · plugins/magpie-contributor-growth/skills/calibrate/SKILL.md · Derive committer and <governance-body> reference levels from the project's own past nomination decisions on…
git:20261101.f3adbcc · audit A · 138 stars
candidate-screen SKILL.md skill
apache/magpie · plugins/magpie-contributor-growth/skills/candidate-screen/SKILL.md · Surface activity data about recent contributors who pass a long-tail pre-filter — for committer and…
git:20261031.ff839a6 · audit A · 138 stars
committer-onboarding SKILL.md skill
apache/magpie · plugins/magpie-contributor-growth/skills/committer-onboarding/SKILL.md · Post-vote committer and PMC onboarding for Apache projects, podling or top-level: walks the nominator from ICLA check…
git:20261027.5395957 · audit B · 138 stars
contributor-to-committer SKILL.md skill
apache/magpie · plugins/magpie-contributor-growth/skills/contributor-to-committer/SKILL.md · Read-only brief showing a contributor's activity next to the project's committer or PMC reference levels, as plain…
git:20261101.f3adbcc · audit A · 138 stars
identity-map SKILL.md skill
apache/magpie · plugins/magpie-contributor-growth/skills/identity-map/SKILL.md · Map a contributor's code-host or community handle to their Slack, Discord, Matrix, mailing-list, and social-media…
git:20261027.5395957 · audit B · 138 stars
nomination SKILL.md skill
apache/magpie · plugins/magpie-contributor-growth/skills/nomination/SKILL.md · Read-only nomination brief for a named contributor on <upstream>. Aggregates code-host and tracker activity across…
git:20261027.5395957 · audit A · 138 stars
onboarding-concierge SKILL.md skill
apache/magpie · plugins/magpie-contributor-growth/skills/onboarding-concierge/SKILL.md · Answer newcomer contribution questions grounded in `CONTRIBUTING.md` and docs. Classifies questions into setup…
git:20261027.5395957 · audit A · 138 stars
sentiment SKILL.md skill
apache/magpie · plugins/magpie-contributor-growth/skills/sentiment/SKILL.md · Measure contributor-sentiment signals on `<upstream>` over a window: thread tone, time-to-first-reply, first-PR…
git:20261027.5395957 · audit A · 138 stars
backlog-stats SKILL.md skill
apache/magpie · plugins/magpie-issue/skills/backlog-stats/SKILL.md · Read-only maintainer dashboard for the open general-issue backlog of <issue-tracker>. Surfaces a health rating…
git:20261027.5395957 · audit A · 138 stars
deduplicate SKILL.md skill
apache/magpie · plugins/magpie-issue/skills/deduplicate/SKILL.md · Merge two open `<issue-tracker>` issues that describe the same root cause, preserving both reporters' context. Proposes…
git:20261027.5395957 · audit A · 138 stars

Every file in apache/magpie

Browse by kind, by grade A, or by owner.