···26262727Look for the originating spec, in this order:
28282929-1. Issue references in the commit messages (`#123`, `Closes #45`, GitLab `!67`, etc.) — fetch via the workflow in `docs/agents/issue-tracker.md`.
2929+1. Issue references in the commit messages (`#123`, `Closes #45`, GitLab `!67`, Tangled rkeys/AT URIs, etc.) — resolve them with `docs/agents/issue-tracker.md`.
30302. A path the user passed as an argument.
3131-3. A PRD/spec file under `docs/`, `specs/`, or `.scratch/` matching the branch name or feature.
3131+3. A PRD/spec/design file matching the branch name or feature. First read `docs/README.md` to understand this repo's documentation map, then search only the locations that map identifies as relevant to product intent, architecture decisions, or design/spec material. Do **not** scan the whole `docs/` tree as if every doc were a spec.
32324. If nothing is found, ask the user where the spec is. If they say there isn't one, the **Spec** sub-agent will skip and report "no spec available".
33333434### 3. Identify the standards sources
+10-7
docs/README.md
···2233This repo uses a Diátaxis-inspired documentation structure.
4455-- **Tutorials** teach by walking through a learning path.
66-- **How-to guides** solve a specific practical problem.
77-- **Reference** records facts, options, APIs, commands, and configuration.
88-- **Explanation** gives background, reasoning, architecture, and trade-offs.
55+Also read root `CONTEXT.md` for the RSSBase glossary and ubiquitous language.
961010-## Structure
77+## Where things go
1181212-- `docs/agents/` — configuration consumed by agent skills.
99+- `docs/product/explanation/` — product and domain background.
1310- `docs/architecture/explanation/` — architectural background and system explanations.
1411- `docs/architecture/decisions/` — architectural decision records, named like `0001-use-atproto-for-user-data.md`.
1512- `docs/development/how-to/` — developer task recipes.
1613- `docs/development/reference/` — developer reference material.
1717-- `docs/product/explanation/` — product and domain explanations.
1414+- `docs/agents/` — agent operating instructions and tracker setup.
1515+1616+## Agent setup
1717+1818+- Issue tracker: `docs/agents/issue-tracker.md`
1919+- Triage labels: `docs/agents/triage-labels.md`
2020+- Domain docs: `docs/agents/domain.md`
+94-18
docs/agents/issue-tracker.md
···11# Issue tracker: Tangled
2233-Issues and PRDs for this repo live as Tangled issues. Use the `tang` CLI for issue operations.
33+Issues and PRDs live as Tangled issues for `mykiwi.dev/rssbase.io`. Pull requests are also on Tangled: <https://tangled.org/mykiwi.dev/rssbase.io/pulls>.
4455-Pull requests are also managed through Tangled. Use the `tang` CLI when possible, and the web UI at <https://tangled.org/mykiwi.dev/rssbase.io/pulls> when needed.
55+Use `tang` for supported workflows. If `DEVENV_ROOT` is not set, wrap project tools with `devenv shell ...`.
6677-## Conventions
77+## Before using `tang`
8899-- Inspect available commands with `tang --help`, `tang issue --help`, and `tang pr --help` before using a workflow for the first time.
1010-- Use `tang issue list` to list issues.
1111-- Use `tang issue create` to create issues.
1212-- Use `tang issue view` or the closest available command to read an issue and comments.
1313-- Use `tang issue comment`, `tang issue edit`, or the closest available command to update issues, labels, and comments.
1414-- Use `tang pr list`, `tang pr view`, `tang pr create`, or the closest available commands for pull request workflows.
1515-- Prefer the repository inferred from the current git remote: `git@tangled.org:mykiwi.dev/rssbase.io`.
99+```bash
1010+git remote -v
1111+tang status
1212+tang --help
1313+tang issue --help
1414+tang pr --help
1515+```
16161717-Command names and flags may vary with the installed `tang` version. Verify with help output before writing.
1717+If a command needs an explicit repository, use `-R mykiwi.dev/rssbase.io`.
18181919-## When a skill says "publish to the issue tracker"
1919+## Issues
20202121-Create a Tangled issue using `tang issue create`.
2121+```bash
2222+tang issue list -R mykiwi.dev/rssbase.io
2323+tang issue create "short imperative title" -R mykiwi.dev/rssbase.io --body-file issue-body.md
2424+tang issue view 1 -R mykiwi.dev/rssbase.io
2525+tang issue edit 1 -R mykiwi.dev/rssbase.io --title "new title"
2626+tang issue comment 1 -R mykiwi.dev/rssbase.io --body "comment text"
2727+tang issue close 1 -R mykiwi.dev/rssbase.io
2828+tang issue reopen 1 -R mykiwi.dev/rssbase.io
2929+```
22302323-## When a skill says "fetch the relevant ticket"
3131+Numeric issue arguments are Tangled AppView issue numbers. For AT URIs or rkeys, inspect `tang issue view --help`; use `--atproto` when required.
24322525-Read the Tangled issue using `tang issue view` or the current equivalent from `tang issue --help`.
3333+## Pull requests
26342727-## Pull requests as a triage surface
3535+```bash
3636+tang pr list -R mykiwi.dev/rssbase.io
3737+tang pr view 1 -R mykiwi.dev/rssbase.io
3838+tang pr create -R mykiwi.dev/rssbase.io --base main --head feature/branch --title "short title" --body-file pr-body.md
3939+tang pr diff 1 -R mykiwi.dev/rssbase.io
4040+tang pr comment 1 -R mykiwi.dev/rssbase.io --body "comment text"
4141+tang pr checkout 1 -R mykiwi.dev/rssbase.io
4242+tang pr close 1 -R mykiwi.dev/rssbase.io
4343+```
28442929-Pull requests are available through Tangled using the `tang` CLI or the web UI at <https://tangled.org/mykiwi.dev/rssbase.io/pulls>.
4545+Treat PRs as related repo work, but prefer Tangled issues as the main request surface unless a maintainer or skill asks otherwise.
30463131-Treat pull requests as related repo work, but prefer Tangled issues as the main request surface unless a skill or maintainer explicitly asks to triage PRs.
4747+## Issue bodies
4848+4949+Prefer concise, agent-friendly issue bodies:
5050+5151+```md
5252+## Goal
5353+One or two sentences describing the outcome.
5454+5555+## Scope
5656+- [ ] concrete task or behavior
5757+5858+## Acceptance criteria
5959+- [ ] observable result or verification command
6060+```
6161+6262+## Triage labels
6363+6464+Use the labels from `docs/agents/triage-labels.md`:
6565+6666+- `needs-triage` — default for new unsorted tickets.
6767+- `needs-info` — missing requirements or reproduction details.
6868+- `ready-for-agent` — clear scope and acceptance criteria.
6969+- `ready-for-human` — needs human judgement or maintainer-only access.
7070+- `wontfix` — rejected or obsolete.
7171+7272+Tangled labels are repo subscriptions. The current `tang` CLI may not expose label commands; if `tang issue edit --help` has no label flags, apply labels in the Tangled web UI. Do not invent unsupported `tang label` commands.
7373+7474+## Commit-message and PR references
7575+7676+Resolve references manually:
7777+7878+- `#123`, `issue #123`, `closes #123`, `fixes #123` → `tang issue view 123 -R mykiwi.dev/rssbase.io`.
7979+- `PR #123`, `pull #123`, `!123`, `/pulls/123` → `tang pr view 123 -R mykiwi.dev/rssbase.io`.
8080+- AT URIs or rkeys → inspect the relevant `view --help`; use `--atproto` when required.
8181+8282+Tangled may not auto-link every GitHub/GitLab-style commit reference.
8383+8484+## Skill workflows
8585+8686+When a skill says **publish to the issue tracker**, create a Tangled issue and verify it with `tang issue view`.
8787+8888+When a skill says **fetch the relevant ticket**, read it with `tang issue view` or `tang pr view`.
8989+9090+## Wayfinding operations
9191+9292+`tang` does not currently expose native sub-issue or blocking-edge commands. For wayfinder maps, encode relationships in issue bodies:
9393+9494+```md
9595+## Parent
9696+- #<parent>
9797+9898+## Blocked by
9999+- #<blocking-issue>: reason
100100+101101+## Children
102102+- #<child>: short title
103103+```
104104+105105+## Safety
106106+107107+Do not expose app passwords, PDS credentials, access tokens, SSH private keys, or DID-linked account secrets. Do not assume GitHub semantics unless Tangled docs or CLI output confirm them.