Skip to content

docs(agents): align bundled rule + skill with Tier A flags + visibility column#29

Merged
SutuSebastian merged 2 commits intomainfrom
chore/agents-templates-tier-a-b7
Apr 30, 2026
Merged

docs(agents): align bundled rule + skill with Tier A flags + visibility column#29
SutuSebastian merged 2 commits intomainfrom
chore/agents-templates-tier-a-b7

Conversation

@SutuSebastian
Copy link
Copy Markdown
Contributor

Summary

The recent merges to main shipped:

But the bundled templates/agents/ rule + skill (the surface installed by codemap agents init) didn't reference any of them. Agents installed downstream would have a stale view of the CLI surface and miss the structured-column path for visibility queries. This PR aligns four files in lockstep:

File Audience
templates/agents/rules/codemap.md Ships to npm — installed by codemap agents init
templates/agents/skills/codemap/SKILL.md Ships to npm
.agents/rules/codemap.md This repo's dev mirror (so my own session view stays accurate)
.agents/skills/codemap/SKILL.md Same

Per-rule edits

  • New CLI table rows for --summary, --changed-since, --group-by (with example commands).
  • One-liner about per-row recipe actions (json + recipe only; ad-hoc SQL never carries them).
  • New trigger pattern row: questions about @internal / @beta / @alpha / @private route to symbols.visibility (the parsed JSDoc tag) rather than doc_comment LIKE '%@beta%'.
  • New quick-reference query for visibility.

Per-skill edits

  • New symbols.visibility row in the schema table.
  • Two new query examples in the Basic lookups block: WHERE visibility IS NOT NULL and WHERE visibility = 'beta'.
  • New Output flags subsection covering --summary / --changed-since / --group-by / per-row actions.
  • Recipe id list extended with deprecated-symbols, visibility-tags, barrel-files, files-hashes (already shipped via earlier PRs but never enumerated in the skill).

Why patch (not minor)

templates/agents/ is the only ship-affecting surface here. The column + flags themselves were released by their respective minor / patch changesets earlier on main. Per .agents/lessons.md "changesets bump policy (pre-v1)", docs / template churn defaults to patch.

Test plan

  • bun run check passes locally (build, format:check, lint:ci, test, typecheck, test:golden — 19/19 golden scenarios green).
  • Diff between dev mirror (.agents/) and shipped templates (templates/agents/) confirmed to differ only on the CLI-prefix prose (bun src/index.ts vs codemap) — same content otherwise.
  • CI green.

…visibility column

Tier A query flags (--summary, --changed-since, --group-by, recipe
actions) and the new symbols.visibility column landed in main but the
bundled rule + skill didn't reference any of them. Agents installed via
`codemap agents init` would have a stale view of the CLI surface.

Updates four files in lockstep:

- templates/agents/rules/codemap.md      (ships to npm consumers)
- templates/agents/skills/codemap/SKILL.md
- .agents/rules/codemap.md                (this repo's dev mirror)
- .agents/skills/codemap/SKILL.md

Per-rule changes:
- New CLI table rows for --summary, --changed-since, --group-by
- One-liner about per-row recipe `actions` (json + recipe only)
- New trigger pattern row mapping "@internal / @beta / @Alpha / @Private"
  questions to symbols.visibility (parsed JSDoc tag, not regex)
- New quick-reference query for visibility

Per-skill changes:
- symbols.visibility row added to the schema table
- Two new query examples (visibility IS NOT NULL; visibility = 'beta')
- "Output flags" subsection covering --summary / --changed-since /
  --group-by / recipe actions
- Recipe id list extended with deprecated-symbols / visibility-tags /
  barrel-files / files-hashes (already shipped, just unlisted)

Patch changeset because templates/agents/ is the only ship-affecting
surface here — the column + flags themselves were released by their
respective minor / patch changesets earlier on main.
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 30, 2026

🦋 Changeset detected

Latest commit: 527194e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@stainless-code/codemap Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 30, 2026

Warning

Rate limit exceeded

@SutuSebastian has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 6 minutes and 23 seconds before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 6b21ac77-18fe-46e1-8611-32693cf9ffc6

📥 Commits

Reviewing files that changed from the base of the PR and between 91598bc and 527194e.

📒 Files selected for processing (8)
  • .agents/lessons.md
  • .agents/rules/codemap.md
  • .agents/skills/codemap/SKILL.md
  • .changeset/agents-templates-tier-a-b7.md
  • docs/README.md
  • docs/agents.md
  • templates/agents/rules/codemap.md
  • templates/agents/skills/codemap/SKILL.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/agents-templates-tier-a-b7

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
Review rate limit: 0/1 reviews remaining, refill in 6 minutes and 23 seconds.

Comment @coderabbitai help to get the list of available commands and usage tips.

…d rule + skill

Adds a numbered governance rule capturing the discipline this PR
exists to enforce: when a CLI flag, recipe id, recipe `actions`
template, schema column, or any agent-queryable surface ships, both
copies of the codemap rule + skill must update in the same PR
(templates/agents/ ships to npm; .agents/ is this clone's mirror).

Three-surface update so the rule is discoverable from each entry point:

- docs/README.md       Rule 10 (canonical) — cited from PRs by number.
- docs/agents.md       One-liner pointing at Rule 10, framed as the
                       maintenance addendum to the "templates/agents
                       vs .agents" intro paragraph.
- .agents/lessons.md   Lesson entry primed at session start so I'm
                       reminded before opening any core-surface PR.
                       References PR #29 as the retro-fix that
                       motivated codifying this.

Drift between templates/agents/ and .agents/ should remain CLI-prefix
only (codemap vs bun src/index.ts) — anything else means content has
diverged.
@SutuSebastian SutuSebastian merged commit 03fbddf into main Apr 30, 2026
9 checks passed
@SutuSebastian SutuSebastian deleted the chore/agents-templates-tier-a-b7 branch April 30, 2026 19:07
@github-actions github-actions Bot mentioned this pull request Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant