diazmelgarejo/orama-system/afrp
Claude Code and agent skill by diazmelgarejo/orama-system
- community
Checking that the SKILL.md file is still in the repository.
Audience-First Response Protocol — mandatory pre-router gate. Classifies query type (A/B/C/D), declares scope, and calibrates abstraction level before any oramasys stage begins. Activates before generating any non-trivial output.
Install
npx vskill@latest install diazmelgarejo/orama-system/afrpSKILL.md
The same SKILL.md was published earlier as diazmelgarejo/orama-system/afrp.
Audience-First Response Protocol (AFRP)
Mandatory pre-router gate. Run before any non-trivial output. Never skip.
Purpose
Classify incoming queries on type and audience level before oramasys routing or execution.
When to Use
Before generating Type B (analytical), C (implementation), or D (ambiguous) responses in orama-system workflows.
The Gate
Before generating output, classify the incoming query on two axes:
Axis 1 — Query Type
| Type | Description | Response calibration | |
|---|---|---|---|
| A | Direct factual / lookup | Concise, direct answer. No elaboration. | |
| B | Analytical / reasoning | Structured explanation, medium depth. | |
| C | Implementation / build | Full oramasys 5-stage process. | |
| D | Ambiguous / meta | Clarify scope before proceeding. |
Axis 2 — Audience Level
| Level | Signals | Calibration | |
|---|---|---|---|
| Novice | "explain", "what is", "how do I" | Plain language, analogies, step-by-step | |
| Practitioner | domain vocabulary, specific tools | Technical precision, skip basics | |
| Expert | edge cases, architecture, tradeoffs | Peer-level depth, no hand-holding |
Protocol Steps
- READ the query fully before classifying
- CLASSIFY: Type (A/B/C/D) × Level (Novice/Practitioner/Expert)
- DECLARE scope: "This is a Type C / Practitioner query. Applying oramasys MODE 2."
- CALIBRATE output format and depth
- PROCEED with the appropriate oramasys mode
Type × Mode Mapping
| Query Type | oramasys Mode | When | |
|---|---|---|---|
| A | MODE 1 (inline, no plan) | Simple lookup, 1-2 steps | |
| B | MODE 1–2 | Analysis, explanation | |
| C (small) | MODE 2 (5-stage, subagents) | Build task, 3-7 steps | |
| C (large) | MODE 3 (full 7-agent network) | 8+ steps, parallel modules | |
| D | Clarify first, then reclassify | Ambiguous scope |
Scope Declaration Format
Example:
Intent-Verification Gate (Anti-Handwaving) — Mandatory
The Type/Level axes calibrate how to answer. This gate guards whether I understood the request at all and whether my method answers it. Handwaving — asserting a conclusion from a narrow proxy without confirming intent — is the #1 way this system wastes the user's time and erodes trust.
Four triggers force a STOP-and-clarify or STOP-and-verify before acting:
- Interpretation risk. The request could mean ≥2 things, uses a term/operation with
competing mechanics (e.g. "re-anchor" = flatten? graft? point-at-twin?), or the user insists something exists/needs doing that my first check denies. → Ask to confirm the true intent and the desired end-state before executing. Do not act on the best guess.
- About to conclude "nothing to do." Before asserting "already fine / no problem
found / no orphans / no data loss / done," verify the conclusion came from the method that actually answers the question, not a cheaper proxy. Name the limit of what was checked. If a proxy disagrees with the user's insistence, run the real method exhaustively before reporting a negative.
- Explicit instruction vs. my guess (catastrophic assumption). The user gave an exact
name / path / structure (e.g. write to .agent/memory) and I am tempted to silently "correct" it to something that seems cleaner (.agents/memory), or to write into an area whose conventions I have not read. → Use the explicit value verbatim; read the area's AGENTS.md / _index first; verify I am not on a stale branch (compare HEAD tree to origin, not ahead/behind). If it still seems wrong, ASK — never substitute a guess for an explicit instruction. Overriding an unambiguous instruction is not a judgment call; it is the failure this protocol exists to prevent.
- Mutable external state. The answer or action depends on live PR, branch, issue, CI,
deployment, or account state. Conversation memory, a prior tool result, a local tracking ref, and a plan snapshot are historical evidence, not current state. Query the authority immediately before deciding or writing. If the result omits decisive fields such as PR state, merged time, head ref, head SHA, or base ref, use a more authoritative endpoint or stop. Do not fill missing fields from memory.
Proxy ≠ real question (examples that bit us):
| Cheap proxy I used | The real question | Right method | |
|---|---|---|---|
git merge-base != root ⇒ "not orphaned" | does the branch's content converge with main? | byte-identical tree-twin search (git log main --format='%H %T') | |
| "no commits absent ⇒ no data loss ⇒ nothing to restore" | does the user want the refs/history reconciled regardless? | ask; reconcile per their model | |
| "tests pass" | does the feature actually work? | run it / observe behavior | |
".agents/ is tidier than the user's .agent/" ⇒ wrote there | which dir does the user/repo actually use? | take the explicit name verbatim; read .agent/AGENTS.md; check origin (the canonical dir already existed) | |
mergeable: CONFLICTING ⇒ merge/rebase stale PR wholesale | deliver harmonized delta without re-adding content already on base? | path-scoped replay onto fresh integration base (merged for periscope); see `path-scoped-pr-replay-reference-card.md` + CIDF integrative-editing-examples §9 | |
| PR pushed with 0 file delta / empty commit | empty index or blind API retry? | verify staged diff; after uncertainty, read remote before retry; compare parent/child trees; then confirm the expected content marker is actually present in the committed blob (see failure-modes.md Failure Mode 9 — a non-empty diff proves something changed, not that the intended artifact landed) | |
| remembered "open PR" ⇒ reject a direct create-PR command as duplicate | is an open PR currently attached to this exact head repository owner/name, head SHA, and intended base — and if the prior PR is merged, does the head contain post-merge commits (if closed and never merged, does it have any delta at all)? | fetch live PR metadata and branch head; classify with the branch-state matrix in `branch-local-pattern-remediation.md` |
Reflect, then route: TRUE intent (clarify if ambiguous) → correct method (not a proxy) → act. Trust the user's domain signal over my first-pass check — their context exceeds mine.
Earned 2026-06-04 (orama/AlphaClaw/periscope branch reconciliation): three successivehandwaved conclusions, each corrected by the user. Seefailure-modes.mdand the`git-history-surgery` skill.Trigger 3 earned 2026-06-22 (Perpetua-Tools memory): the user said write to.agent/memory;I silently used.agents/memoryand committed there, on a stale branch, never reading thecanonical.agent/AGENTS.md. The reference DO-NOT example lives in`cidf/SKILL.md` (verify-target) and orama `docs/LESSONS.md` §2026-06-22.Proxy-table rows earned 2026-07-28 (periscope PR #12 ECC):CONFLICTINGdid not mean"merge harder" — it meant the base had moved and the branch re-added an already-landedbundle. Path-scoped replay + integrative synthesis (CIDF §9, git-history-surgery card)replaced two noisy commits with one clean delta. See`failure-modes.md` §6–8 examples.Trigger 4 earned 2026-09-12 UTC (Agate PR #2): stale conversational state said the PRwas open, while GitHub showed it was merged. The agent overrode the user's direct requestto create a PR and falsely called it a duplicate. The branch still held a post-mergecommit, recovered through Agate PR #3. Seefailure-modes.mdFailure Mode 10.
Boundaries
Always Do
- Run AFRP gate before any Type B, C, or D response
- State the gate result explicitly when using Mode 2 or 3
- Re-run gate if the user clarifies a Type D query
- Run the Intent-Verification gate on interpretation risk or before any "nothing to do" conclusion — AskUserQuestion FIRST, reflect, use the real method not a proxy
- Verify mutable external state live immediately before a decision or write; record the
exact repository, PR/issue, state, base, head, and SHA used for the decision
Ask First
- Reclassifying from C to D (means the task is ambiguous — confirm with user)
- Any request open to ≥2 interpretations, or where the user insists against my first check — confirm intent before acting
Never Do
- Skip the gate for complex or audience-dependent queries
- Proceed with Mode 3 without declaring it explicitly
- Assume expert level without signals confirming it
- Handwave: assert "done / fine / nothing needed" from a narrow proxy without confirming intent or running the method that truly answers the question
- Override an explicit instruction with a guess: silently substitute your own name/path/structure for the exact one the user gave, or write into an area without reading its
AGENTS.md/_index(see Intent-Verification trigger 3) - Treat memory as transaction state: reject or redirect an explicit GitHub command from
remembered PR status without a fresh authoritative lookup
Integration
AFRP is the first step in bin/orama-system/SKILL.md Mode Router. It runs before the complexity signals are evaluated. The router is compatible with Perplexity-Tools via the current bridge, OR via the implemented HTTP /oramasys path. The old /ultrathink route is a deprecated compatibility shim.
See `bin/orama-system/SKILL.md` for the full execution mode router.
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 repositoryCheckingbin/orama-system/afrp/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/diazmelgarejo/orama-system/afrp)