hkust-knowcomp/deeprefine-skill/codex-skill
Claude Code and agent skill by hkust-knowcomp/deeprefine-skill
- community
Checking that the SKILL.md file is still in the repository.
Codex adapter for the DeepRefine agent-native refinement loop. Use when the user invokes $deeprefine or /deeprefine, or asks to refine, diagnose, review, or apply changes to a Graphify / LLM-Wiki knowledge graph. Must follow the canonical DeepRefine skill rules and stop for review before graph writes.
Install
npx vskill@latest install hkust-knowcomp/deeprefine-skill/codex-skillSKILL.md
DeepRefine - Codex Adapter
This file is the Codex-specific entrypoint. It keeps the platform rules small and loads longer DeepRefine procedure details only when needed:
- Full workflow, queue selection, refinement branch logic, and review rules:
references/deeprefine-workflow.md
- Verbatim judgement, abduction, and refinement prompts:
- Checklist, command sequence, trace schema, paths, and CLI mode:
references/trace-and-commands.md
Do not reimplement or shorten the algorithm from memory. Load the relevant reference file before executing that part of the workflow.
Codex Invocation
Trigger this skill when the user:
- explicitly invokes
$deeprefineor/deeprefine; - asks to refine, improve, diagnose, repair, inspect, or review a Graphify
knowledge graph;
- asks to apply a previously reviewed DeepRefine refinement.
Run from the knowledge-base project root, where graphify-out/graph.json exists. If the user is planning or asking how DeepRefine works, explain the workflow and do not mutate files.
If deeprefine is unavailable, tell the user to install it:
For source development:
Hard Safety Policy
A normal $deeprefine or /deeprefine invocation is dry-run only and MUST NEVER call deeprefine apply.
The default workflow must stop after:
deeprefine loop validatedeeprefine review- showing the proposed actions and HIGH/MEDIUM/LOW review report to the user
Then ask for explicit approval.
Only if the user's next message explicitly says to approve/apply/write the graph may you run:
Do not treat any of these as approval:
- generation of a
<refinement>block; - a valid
loop_trace_<query_id>.json; - a prior user message;
- a successful
deeprefine review.
If the review contains LOW-confidence actions, use --allow-low-confidence only when the user's current approval message explicitly accepts that risk.
Mode Selection
Full workflow
Use for $deeprefine, /deeprefine, or requests to refine/improve/fix the graph.
Follow the canonical reference in this order:
references/deeprefine-workflow.mdreferences/llm-prompts.mdwhen producing tagged LLM outputsreferences/trace-and-commands.mdwhen writing traces or running commands
Do not copy only the latest query if pending history exists. Process all unrefined history queries first, preserving canonical dedupe/order rules.
Review only
Use when the user asks to review, audit, inspect, dry-run, check evidence, or show what would change.
Run validation and review only:
Show the HIGH/MEDIUM/LOW evidence report. Do not modify graph.json.
Apply only
Use only when the user's current message explicitly approves a previously reviewed refinement.
Before applying, verify that the trace and refinement file match references/trace-and-commands.md and the review rules in references/deeprefine-workflow.md. Then run:
Use the LOW-confidence override only with explicit risk acknowledgement in the same user message:
Non-Negotiable Rules
These are restated here so Codex always sees the hard stops before loading any reference.
Do not:
- Run
deeprefine refineunless the user explicitly asks for CLI/FAISS mode. - Call
deeprefine applywithout a validloop_trace_<query_id>.json. - Call
deeprefine applybeforedeeprefine reviewand explicit approval. - Ignore LOW-confidence review warnings without explicit risk acceptance.
- Skip any hop's
<judge>Yes</judge>/<judge>No</judge>judgement. - Skip error abduction when
len(interaction_history) > 1. - Write
<refinement>before abduction when refinement is required. - Hand-edit
graphify-out/graph.jsonwith Python or ad-hoc JSON patches. - Ignore pending history and refine only one latest query.
- Invent a shorter pipeline such as "read file -> write refinement -> apply".
If validation fails, fix the trace or rerun the missing step. Do not bypass with --skip-trace-check in agent mode.
What to Load From References
Keep this adapter concise. Load the smallest reference needed:
- Full refinement pseudocode and safe review:
references/deeprefine-workflow.md
- Verbatim LLM prompts:
references/llm-prompts.md
- Required JSON shape, exact command sequence, and CLI/FAISS exception path:
references/trace-and-commands.md
Use the canonical commands and artifacts exactly as written there. This adapter only maps those rules onto Codex's $deeprefine / /deeprefine invocation and approval behavior.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdeeprefine_skill/codex_skill/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hkust-knowcomp/deeprefine-skill/codex-skill)