---
name: rfd
description: Read Oxide RFD contents, metadata, and images by number using rfd-cli. Use when an RFD comes up (e.g. "RFD 63", "what does the networking RFD say") and you need the actual text.
title: rfd
canonical_url: https://skilld.dev/gh/david-crespo/dotfiles/rfd
last_updated: 2026-09-27T02:30:59.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> If the user asked to install this Skill, run `npx skilld install david-crespo/dotfiles/rfd`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/rfd`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/david-crespo/dotfiles/rfd) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/rfd`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/rfd --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/rfd --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# RFD

Oxide RFDs live in the `oxidecomputer/rfd` repo, but each RFD's content sits on
its own branch, so the local clone (`~/oxide/rfd`) can't be grepped as a flat
tree. The canonical source is the RFD API, which `rfd-cli` talks to. Prefer
`rfd-cli` over poking at the repo.

`rfd-cli` is installed at `~/.local/bin/rfd-cli` (invoke as `rfd-cli`, not
`rfd`). All commands take `-f json` implicitly when piped; output is JSON.

## Get an RFD's contents

```bash
rfd-cli view --number 63 | jq -r '.content'
```

`.content` is the canonical raw AsciiDoc (the only content field — `view`
returns it once; `meta` is the same record minus `.content`). It begins with the
`:key: value` attribute block and the `= RFD N Title` heading.

Useful metadata fields on the same record: `.title`, `.state`, `.authors`,
`.discussion` (PR URL), `.link` (GitHub tree URL at the rendered commit), and
`.commit` (the commit SHA the content was rendered from — needed for images).

```bash
rfd-cli view --number 63 | jq '{title, state, authors, discussion, link, commit}'
```

## Search

Search hits the RFD index (Meilisearch) and returns section-level results —
reasonable for finding which RFD/section discusses a topic, then `view` it.

```bash
rfd-cli search --q "boundary services" --limit 10 \
  | jq -r '.hits[] | "RFD \(.rfd_number) [#\(.anchor)] \(.hierarchy | map(select(.)) | join(" > "))"' \
  | sort -u
```

Each hit also has `.content` (the matching passage) and `.formatted.content`
(same, with `<em>` around matched terms). It's keyword search, not semantic —
try a few phrasings.

## List

```bash
rfd-cli list | jq -r '.[] | "\(.rfd_number)\t\(.state)\t\(.title)"' | sort -n
```

## Images

RFD AsciiDoc references images with `image::filename[]` (or `image:filename[]`
inline). The files aren't in the API response; they live next to the RFD in the
repo at `rfd/NNNN/filename` (zero-padded to 4 digits). Fetch them from the local
clone at the exact commit the API rendered (`.commit`), then Read the file:

```bash
# find image refs
rfd-cli view --number 63 | jq -r '.content' | rg 'image::?'

# extract one at the rendered commit
sha=$(rfd-cli view --number 63 | jq -r '.commit')
git -C ~/oxide/rfd show "$sha:rfd/0063/l3.png" > /tmp/rfd63-l3.png
```

Then Read `/tmp/rfd63-l3.png` to view it.

If `git show` fails with "bad object", the commit isn't fetched locally yet —
`git -C ~/oxide/rfd fetch origin` and retry. Access to private RFD images is
just the user's normal repo access; there's no separate image auth to deal with
when going through the local clone.
