agentleFS
xarleynxarleyn/dsh-plugins/AGENTS.md

dsh-plugins

AGENTS.md2 starsChanged 2 months agoMITView on GitHub

- Before finishing a task, run the checks relevant to the changed scope. - For code changes, run the available tests, linter, type checker, build, and package or integration verification when applicable. Prefer the repository's combined check command when it covers the affected code. - Do not claim that a task is complete while a relevant check is failing. If a check cannot be run, state which check was skipped and why. - Report the exact verification commands and their…

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository4 other files it gives its agents.

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

14 rules. About 0 are common, 5 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before finishing a task, run the checks relevant to the changed scope.

    line 5
  2. Distinctive:

    Do not claim that a task is complete while a relevant check is failing.

    line 9
  3. Distinctive:

    If a check cannot be run, state which check was skipped and why.

    line 10
  4. Very specific:

    Every user-visible @yadsh/dsh-qa-surface change that adds or updates an Nx version plan must also update …

    line 16
  5. Very specific:

    Every package that declares dsh.client must ship a classic browser bundle that registers itself through window.__ModuleLoader__.load({ id, …

    line 24
  6. Very specific:

    Use settings.plugin.item only for a card that edits a real Host settings namespace.

    line 37
  7. Very specific:

    Use settings.plugins.tab for feature-owned pages backed by custom Remote services, account/session state, or any UI that must remain …

    line 41
  8. Very specific:

    Use settings.section for a page that is mounted inside the native settings tree, as dsh-preset-persona-editor does.

    line 45
  9. Very specific:

    Use the shared BEM class contract for the shell: dsh-plugin-card, dsh-plugin-card--open, dsh-plugin-card__header, …

    line 55
  10. Distinctive:

    Keep the shell rules identical in every self-contained client bundle.

    line 61
  11. Distinctive:

    If the settings namespace is unavailable, render no card.

    line 83
  12. Very specific:

    Use a 14 by 14 inline SVG chevron with viewBox="0 0 14 14" and the path m3.5 5.25 3.5 3.5 3.5-3.5, stroked with currentColor, round caps, …

    line 84
  13. Very specific:

    Test fixtures ship in public git history even when they do not ship in tarballs.

    line 104
  14. Very specific:

    Before committing anything naming a project, host, task or person, grep for marker classes: ticket keys [A-Z]{3,10}-[0-9]+, corporate …

    line 109

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Repository instructions

Verification before completion

  • Before finishing a task, run the checks relevant to the changed scope.
  • For code changes, run the available tests, linter, type checker, build, and package or integration verification when applicable. Prefer the repository's combined check command when it covers the affected code.
  • Do not claim that a task is complete while a relevant check is failing. If a check cannot be run, state which check was skipped and why.
  • Report the exact verification commands and their results in the final handoff.

QA surface release notes

  • Every user-visible @yadsh/dsh-qa-surface change that adds or updates an Nx version plan must also update plugins/dsh-qa-surface/src/client/components/QaChangelog.tsx for the planned version in the same change. Do not bump package.json manually; Nx materializes the version during release.

Browser client module identity

  • Every package that declares dsh.client must ship a classic browser bundle that registers itself through window.__ModuleLoader__.load({ id, factory }).
  • The registration id must exactly equal the package's full package.json.name, including its npm scope. Do not use the Cordis patch id, the plugin directory name, or an unscoped shorthand.
  • Client bundle and packed-package verification must assert the full package name. When an integration check fetches a bundle, use /plugins/<full-package-name>/client.js, preserving the scoped path.

Plugin configuration card UI

Choosing the settings extension point

  • Use settings.plugin.item only for a card that edits a real Host settings namespace. The Host discovers these cards from the settings directory, which is intentionally unavailable to non-loopback browsers; do not create an empty namespace merely to make a feature-owned page appear there.
  • Use settings.plugins.tab for feature-owned pages backed by custom Remote services, account/session state, or any UI that must remain available from a non-loopback browser. Such a tab may reuse the standard card shell, but its <li> root must still be rendered inside a plugin-owned <ul>.
  • Use settings.section for a page that is mounted inside the native settings tree, as dsh-preset-persona-editor does. It is a placement choice, not an availability guarantee: a page that must keep working without the native settings surface belongs in settings.plugins.tab. A page registered here that reuses the standard card shell keeps its <li> root inside a plugin-owned <ul>.
  • Cards registered in settings.plugin.item must use the same outer shell as the first-party DSH plugin cards. The root is a direct <li> child of the host list, not an <article> or a permanently expanded custom panel.
  • Use the shared BEM class contract for the shell: dsh-plugin-card, dsh-plugin-card--open, dsh-plugin-card__header, dsh-plugin-card__head-text, dsh-plugin-card__name, dsh-plugin-card__description, dsh-plugin-card__badge, dsh-plugin-card__chevron, and dsh-plugin-card__body. Keep plugin-specific class names inside the body.
  • Keep the shell rules identical in every self-contained client bundle. Do not add a plugin-specific border, shadow, gradient, header icon, title size, or hover treatment. The canonical shell CSS is:

    .dsh-plugin-card{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-3);border-radius:12px;list-style:none;transition:border-color .16s,background .16s}
    .dsh-plugin-card:hover{border-color:var(--dsw-alias-label-dimmed)}
    .dsh-plugin-card--open{background:var(--dsw-alias-bg-layer-2);border-color:var(--dsw-alias-label-dimmed)}
    .dsh-plugin-card__header{appearance:none;width:100%;font:inherit;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:12px;align-items:center;gap:12px;padding:14px 16px;display:flex}
    .dsh-plugin-card__header:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:-2px}
    .dsh-plugin-card__head-text{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}
    .dsh-plugin-card__name{color:var(--dsw-alias-label-primary);font-size:15px;font-weight:600;line-height:1.4}
    .dsh-plugin-card__description{color:var(--dsw-alias-label-tertiary);font-size:13px;line-height:1.5}
    .dsh-plugin-card__badge{white-space:nowrap;background:var(--dsw-alias-bg-module-platform);color:var(--dsw-alias-label-secondary);border-radius:999px;flex:none;padding:1px 8px;font-size:11px;font-weight:500;line-height:17px}
    .dsh-plugin-card__chevron{width:14px;height:14px;color:var(--dsw-alias-label-tertiary);flex:none;transition:transform .16s}
    .dsh-plugin-card--open .dsh-plugin-card__chevron{transform:rotate(180deg)}
    .dsh-plugin-card__body{border-top:1px solid var(--dsw-alias-border-l2);margin:0 16px;padding-bottom:8px}
  • The header is a full-width <button type="button"> with aria-expanded, an accessible show/hide label, the title and description stack, an optional status badge, and the chevron in that order. Render the body only while open. If the settings namespace is unavailable, render no card.
  • Use a 14 by 14 inline SVG chevron with viewBox="0 0 14 14" and the path m3.5 5.25 3.5 3.5 3.5-3.5, stroked with currentColor, round caps, and round joins. Do not use font glyphs such as ⌄ or ▾; their shape and baseline vary by font and encoding.
  • Build plugin-specific controls from --dsw-alias-* design tokens so light, dark, and system themes stay coherent. Hard-coded colors may communicate a narrow semantic state, but must not define the card surface or typography.
  • Package verification for a configuration card must assert the standard shell class and SVG path in the built client bundle and reject legacy outer-shell classes, font chevrons, and non-standard shell tokens. When a local DSH web app is available, visually compare closed, hovered, focused, and open states with a first-party card before completion.

No internal identifiers in public content

  • The repository is public and every package publishes to npm. Examples, fixtures, specs, tool descriptions, error messages and READMEs must use only synthetic placeholders: PROJ-123/PROJ-456, jira.example.corp, «Демо-продукт». Never real task numbers under a renamed prefix, internal hosts, LAN addresses, project keys, product names, or people's names.
  • Test fixtures ship in public git history even when they do not ship in tarballs; lib/*.js strings and anything in the package files list ship to npm.
  • Release notes must not reveal that a leak existed ("no longer names an internal Jira project" is itself a disclosure).
  • Before committing anything naming a project, host, task or person, grep for marker classes: ticket keys [A-Z]{3,10}-[0-9]+, corporate hosts, RFC1918 addresses with real ports, person names and logins.
  • Exempt: qa-deploy/, qa-deploy-docker/, .portable/ kits.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.