agentleFS
prime-radiant-incprime-radiant-inc/streamlinear/AGENTS.md

streamlinear

AGENTS.md90 starsChanged 7 months agoMITView on GitHub

These instructions apply to this repository. streamlinear publishes @primeradianthq/streamlinear, a small Linear MCP/CLI package for Claude Code and other MCP consumers. The package exposes: Source lives under mcp/src. The shared behavior is in mcp/src/linear-core.ts; keep the MCP server and CLI entry points thin. Install both dependency trees before verification: Use the smallest relevant check while developing, and run the full gate before claiming release readiness. npm run check is the full local release gate. It builds, typechecks, tests, checks committed…

  • 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,736 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 repositoryOne other file it gives its agents.

The file

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

5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use the smallest relevant check while developing, and run the full gate before claiming release readiness.

    line 29
  2. Very specific:

    Do not add npm lifecycle hooks such as prepare, postinstall, or prepublishOnly.

    line 68
  3. Distinctive:

    Keep hooks clone/dev-only.

    line 79
  4. Distinctive:

    If npm auth is not configured for GitHub yet, the first scoped publish may need to be done manually by a logged-in npm user.

    line 89
  5. Distinctive:

    Keep publication/tooling changes separate from runtime bug fixes and security hardening unless Drew expands the scope.

    line 94

≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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

AGENTS.md

These instructions apply to this repository.

Project

streamlinear publishes @primeradianthq/streamlinear, a small Linear MCP/CLI package for Claude Code and other MCP consumers.

The package exposes:

  • streamlinear: stdio MCP server, backed by mcp/dist/index.js.
  • streamlinear-cli: local command-line interface, backed by mcp/dist/cli.js.

Source lives under mcp/src. The shared behavior is in mcp/src/linear-core.ts; keep the MCP server and CLI entry points thin.

Setup

Install both dependency trees before verification:

npm ci
npm --prefix mcp ci

Verification

Use the smallest relevant check while developing, and run the full gate before claiming release readiness.

npm run build
npm run typecheck
npm run test
npm run dist:check
npm run package:check
npm run pack:verify
npm run check

npm run check is the full local release gate. It builds, typechecks, tests, checks committed dist artifacts, validates package metadata, runs production dependency audits, and verifies the packed tarball in a temp consumer.

Build Artifacts

mcp/dist/index.js and mcp/dist/cli.js are committed on purpose because npm executes those files directly. Do not hand-edit dist. If mcp/src/** changes, run npm run build and commit any resulting dist changes.

Package Boundary

The npm package surface is the root package.json files allowlist. Keep repo-only agent/plugin/development files out of npm unless Drew explicitly asks to publish them.

Currently clone/dev-only:

  • AGENTS.md
  • CLAUDE.md
  • .claude-plugin/**
  • .github/**
  • scripts/**
  • mcp/src/**
  • mcp/test/**

Do not add npm lifecycle hooks such as prepare, postinstall, or prepublishOnly. Consumers should not need a build step during install.

Development Hooks

Optional clone hooks use Lefthook and are installed explicitly with:

npm run hooks:install

Keep hooks clone/dev-only. They should check or rebuild local artifacts for contributors; they should not mutate package consumers.

Release

The intended package is @primeradianthq/streamlinear. The unscoped streamlinear package on npm is not the target for this repo.

Release tags are vX.Y.Z and must match package.json. The GitHub release workflow verifies the tag, runs npm run check, then publishes with provenance. If npm auth is not configured for GitHub yet, the first scoped publish may need to be done manually by a logged-in npm user.

Scope Guardrails

Keep publication/tooling changes separate from runtime bug fixes and security hardening unless Drew expands the scope. The follow-up bug/secops ticket should own behavioral hardening.

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.