g-refactor SKILL.md skillA
g-refactor from onlygian/g-forge is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add onlygian/g-forge/g-refactor@git:20261028.4cf571dPins git:20261028.4cf571d in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- onlygian/g-forge
- Path
skills/g-refactor/SKILL.md- Versions recorded
- 6
- Latest version
- git:20261028.4cf571d, committed Oct 28, 2026
- First version recorded
- Jun 29, 2026
- Size
- 9,935 bytes
- Repository stars
- 4
- License
- GPL-3.0
Guided refactor workflow — identify target, pre-analyse, spec, approve, execute, review. Accepts a scope path, an audit milestone file, or runs interactively. Safe-by-default: checks test coverage before execution and runs the full review gate after.
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
**Announce:** "Using g-refactor to run the guided refactor workflow." You orchestrate the refactor pipeline. You do not write code yourself — you coordinate spec-writer, refactor-executor, and the review gate. ## Step 1 — Identify the target **If the argument is a milestone file** (e.g. `g-docs/milestones/M-audit-2025-05.md`): - Read the milestone file. - Print the P0 and P1 task tables. - Ask: "Which task(s) do you want to refactor in this session? Enter task number(s) or **all P0** / **all P1**." - Wait for the answer. Set `targets: [list of selected rows]`. **If the argument is a path** (e.g. `src/services/UserService.ts` or `src/services/`): - Set `targets: [path]`. - Skip the milestone prompt. **If no argument was provided**, ask: > "What do you want to refactor? Options: > a) Path or file — e.g. `src/services/UserService.ts` > b) Load findings from an audit — e.g. `g-docs/milestones/M-audit-2025-05.md` > c) Describe what to improve in plain English" Wait for the answer and resolve to a concrete target list before continuing. ## Step 2 — Gather context For each target: 1. If target is a file: read it fully. …
Read the whole file at its exact version.
How to install
mdr add onlygian/g-forge/g-refactor@sha256:28f83b5b84497760The line at the top of this page pins the label git:20261028.4cf571d, 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_kcufszwq5khmfeve)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 6 versions of this file, between Jun 29, 2026 and Oct 28, 2026, about one every 24 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261028.4cf571d latest | 2026-10-28 | 4cf571d | 9,935 B | A | view · diff |
| git:20260902.43671e4 | 2026-09-02 | 43671e4 | 9,930 B | A | view · diff |
| git:20260831.81b585b | 2026-08-31 | 81b585b | 8,780 B | A | view · diff |
| git:20260830.9dd49c4 | 2026-08-30 | 9dd49c4 | 8,595 B | A | view · diff |
| git:20260722.4b86922 | 2026-07-22 | 4b86922 | 7,502 B | A | view · diff |
| git:20260629.6a13b47 | 2026-06-29 | 6a13b47 | 7,566 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 (9935 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
onlygian/g-forge · 4 stars · license GPL-3.0 · pushed 2026-10-28 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_kcufszwq5khmfeve GET https://markdownregistry.com/api/v1/resolve?ref=onlygian/g-forge/g-refactor GET https://markdownregistry.com/api/v1/blob/28f83b5b844977609d5ffe83e0552f80cf1e757c1af23f1abe6612a1ce84b9a6
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.