Repository navigation
Adopt tikoci house layout: AGENTS.md entry, .agents/skills, house exceptions #266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
mobileskyfi
wants to merge
2
commits into
main
Choose a base branch
from
chore/house-adoption
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+279
−210
Draft
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| { | ||
| "hooks": { | ||
| "SessionStart": [ | ||
| { | ||
| "hooks": [ | ||
| { | ||
| "type": "command", | ||
| "command": "cd \"$CLAUDE_PROJECT_DIR\" 2>/dev/null || { echo \"ros-help.db grounding: NOT CHECKED (cannot cd to CLAUDE_PROJECT_DIR). Treat ros-help.db as untrusted until make db-doctor says OK.\"; exit 0; }; command -v bun >/dev/null 2>&1 || { echo \"ros-help.db grounding: NOT CHECKED (bun is not on PATH; install Bun per CONTRIBUTING.md, then run make db-doctor). Treat ros-help.db as untrusted.\"; exit 0; }; if out=$(bun run scripts/db-doctor.ts 2>&1); then echo \"ros-help.db grounding: OK ($(echo \"$out\" | grep -m1 release_tag | tr -s ' '))\"; else echo \"$out\"; echo \"ros-help.db is NOT trusted for grounding. Run make db-sync (stop the rosetta MCP server first) before making claims about shipped data.\"; fi; exit 0", | ||
| "timeout": 30 | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../.agents/skills |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,35 +1,6 @@ | ||
| # Copilot instructions for rosetta | ||
|
|
||
| GitHub Copilot reads this file plus matching `.github/instructions/*.instructions.md` files. Keep this file short; put actual rules in the narrow instruction files. | ||
|
|
||
| ## Project snapshot | ||
|
|
||
| - Bun + TypeScript, with Bun-native runtime APIs (`bun:sqlite`, `Bun.serve`, `bunx`). | ||
| - One core data model, exposed as MCP + browse TUI + glossary/command-tree surfaces. | ||
| - `CLAUDE.md` is now only the orientation + routing index. Rationale lives in `DESIGN.md`; operator/reference material lives in `MANUAL.md`. | ||
|
|
||
| ## Routing map | ||
|
|
||
| - `CLAUDE.md` — project orientation and "where does this go?" index. | ||
| - `AGENTS.md` — Codex-specific routing note. | ||
| - `DESIGN.md` — durable rationale, data-source provenance, architecture tradeoffs. | ||
| - `MANUAL.md` — install, release/re-extraction operations, CLI/HTTP reference, schema. | ||
| - GitHub Issues — the active work queue (`agent-ready` / `umbrella` / `blocked` labels). `tasks/` is a frozen archive; `tasks/README.md` / `briefings/README.md` hold the directory-local rules. | ||
| - `.github/instructions/*.instructions.md` — narrow normative rules selected by `applyTo`. | ||
|
|
||
| ## Start with these broad rules | ||
|
|
||
| - `where-does-this-go.instructions.md` | ||
| - `issue-pr-linking.instructions.md` | ||
| - `changelog-discipline.instructions.md` | ||
| - `capture-undone-work.instructions.md` | ||
| - `ci-pickup-verification.instructions.md` | ||
| - `instruction-scopes.instructions.md` | ||
|
|
||
| ## Surface-specific rules | ||
|
|
||
| - MCP/query/TUI/canonicalizer → `mcp-server.instructions.md` | ||
| - Extraction/data-shape work → `extraction.instructions.md` | ||
| - Database init/schema internals → `database.instructions.md` | ||
|
|
||
| Prefer pointers over repetition. If you are about to add a long rule here, it probably belongs in a new scoped instruction file instead. | ||
| Read [`AGENTS.md`](../AGENTS.md) at the repo root: it is the entry point for every agent, with the | ||
| project orientation, where each kind of information lives, and an index of the | ||
| `.github/instructions/*.instructions.md` files. Copilot also applies those files automatically by | ||
| their `applyTo` scope. Do not add rules here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,21 @@ | ||
| --- | ||
| description: "Meta-rule for writing agent instruction files: one topic per file, smallest honest scope, and pointers instead of duplicated prose." | ||
| applyTo: ".github/copilot-instructions.md, .github/instructions/**, .github/skills/**, .github/prompts/**, CLAUDE.md, AGENTS.md" | ||
| description: "Meta-rule for agent instruction files: AGENTS.md is the one entry file, no new .github/instructions files, one home per rule, pointers instead of duplicated prose." | ||
| applyTo: ".github/copilot-instructions.md, .github/instructions/**, .agents/skills/**, .github/prompts/**, CLAUDE.md, AGENTS.md, **/AGENTS.md" | ||
| --- | ||
| # Instruction scopes | ||
|
|
||
| When adding or editing instruction or agent-entrypoint files: | ||
| The house rule is <https://tikoci.dev/house/skills/tikoci-house/SKILL.md>. In this repo: | ||
|
|
||
| - Put one rule or one tightly related topic in each file. | ||
| - Use the smallest honest `applyTo` scope; broad scopes are fine when the rule is genuinely broad. | ||
| - Keep one normative home per rule. Other instruction files should point to it instead of copying the prose. | ||
| - Prefer adding a new narrow file over inflating a generic router file. | ||
| - Keep `CLAUDE.md`, `AGENTS.md`, and `.github/copilot-instructions.md` as thin routers, not competing rulebooks. | ||
| - `AGENTS.md` is the entry file for every agent. `CLAUDE.md` is only `@AGENTS.md`, and | ||
| `.github/copilot-instructions.md` only points to AGENTS.md. A directory `AGENTS.md` (e.g. | ||
| `matrix/`) gets a sibling `CLAUDE.md` containing `@AGENTS.md`. | ||
| - Do not add new `.github/instructions/*.instructions.md` files. A new repo workflow goes in | ||
| `.agents/skills/<name>/SKILL.md`, with a frontmatter `name` matching the directory. A new rule | ||
| goes in the existing file that governs it, or in AGENTS.md if it is short and repo-wide. | ||
| - When you edit, rename or retire an instruction file, update the index in AGENTS.md in the same | ||
| change. Codex and other agents ignore `applyTo` and find these files only through that index. | ||
| - Give a file the smallest honest `applyTo` scope; broad scopes are fine when the rule is | ||
| genuinely broad. | ||
| - Keep one normative home per rule. Other files point to it instead of copying the prose. | ||
| - Keep machine facts (home paths, host names, local checkouts, accounts) out of the repo. They | ||
| belong in the operator's `~/.agents/AGENTS.md`. |
6 changes: 3 additions & 3 deletions
6
.github/instructions/llm-instruction-files-excluded-from-mdlint.instructions.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,11 @@ | ||
| --- | ||
| description: "LLM-targeted instruction files are excluded from markdownlint so authoring rules for human docs do not distort agent-facing guidance." | ||
| applyTo: ".markdownlint.yaml, .markdownlintignore, CLAUDE.md, AGENTS.md, .github/copilot-instructions.md, .github/instructions/**" | ||
| applyTo: ".markdownlint.yaml, .markdownlintignore, .markdownlint-cli2.yaml, CLAUDE.md, AGENTS.md, .github/copilot-instructions.md, .github/instructions/**" | ||
| --- | ||
| # Exclude LLM instruction files from markdownlint | ||
|
|
||
| Agent-facing instruction files are a different audience than README-style docs. | ||
|
|
||
| - Keep them excluded via `.markdownlintignore`. | ||
| - The exclusion set includes `CLAUDE.md`, `AGENTS.md`, `.github/copilot-instructions.md`, and `.github/instructions/**`. | ||
| - Keep them excluded via `.markdownlintignore` and `.markdownlint-cli2.yaml` (keep the two lists identical). | ||
| - The exclusion set includes every `CLAUDE.md` and `AGENTS.md`, `.github/copilot-instructions.md`, `.github/instructions/**`, `.github/prompts/**` and `.agents/skills/**`. | ||
|
Comment on lines
+9
to
+10
|
||
| - Put human-facing markdown style enforcement in the lint config, not in these files. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make the trigger and re-review guidance consistent throughout this skill. Immediately above, the blanket draft exclusion would make an agent skip the two Copilot threads already on this draft. CodeRabbit skips drafts here, and Copilot can review them. At the end of the skill, lines 112–113 still tell agents to ask the user before requesting a fresh bot pass, which conflicts with the maintainer-only rule here. Remove that instruction and have agents check existing threads when asked, including on drafts. GitHub’s Copilot review triggers.