rayfin / docgen
AGENTS.md646 starsChanged 24 days agoMITView on GitHub
Scope: TypeDoc configuration and generation for SDK API reference docs. Generates markdown into packages/docgen/dist/ts-sdk which the Docusaurus site at docs/site mirrors into its own staging directory at config-load time. - Config: packages/docgen/typedoc.json - Landing page: packages/docgen/README.md (TypeDoc readme option) - SDK inputs: each entryPoints directory under packages/typescript-sdk/ with entryPointStrategy: "packages". The current set covers lib, core, client, auth, data, auth-provider-fabric, functions, connectors, and connector-fabric-semanticmodel. connector-kusto and storage are excluded because they are marked stability: "experimental" in the docs catalog, and…
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
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
- Very specific: line 65
Use external links in packages/docgen/README.md to avoid TypeDoc asset-copy warnings.
≈ “Common” is an estimate: at least 1 in 5 of the 36,368 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.
Files
Typedoc AGENTS
Scope: TypeDoc configuration and generation for SDK API reference docs.
Generates markdown into packages/docgen/dist/ts-sdk which the Docusaurus
site at docs/site mirrors into its own staging directory at config-load
time.
Commands
- Generate docs via docgen project:
rush build --to @rayfin/docgen - Validate the site that consumes them:
rush build --to docs-site
Source of Truth
- Config:
packages/docgen/typedoc.json - Landing page:
packages/docgen/README.md(TypeDocreadmeoption) - SDK inputs: each
entryPointsdirectory underpackages/typescript-sdk/withentryPointStrategy: "packages". The current set coverslib,core,client,auth,data,auth-provider-fabric,functions,connectors, andconnector-fabric-semanticmodel.connector-kustoandstorageare excluded because they are markedstability: "experimental"in the docs catalog, anddocs/site/rayfin-docs-sources.tsgates experimental packages out of the stable docs site; adding an entry point here would orphan the derived required-module check.connector-fabric-graphqlis also excluded: it ships a hand-authored multi-page doc hub that the site mirrors in preference to generated output, so a TypeDoc entry point would drop its companion pages and break their relative links.packages/udf/udf-worker-extension(@microsoft/fabric-user-data-functions) ships a hand-authored api-reference hub atassets/docs/and is on the stable docs site — it carries nostabilityflag in the catalog, which is a docs classification and deliberately independent of the package's npm release channel. It is still not a TypeDoc entry point, for a different reason: it lives outsidepackages/typescript-sdk/, so the last-path-segment derivation would producerayfin-udf-worker-extensionrather than itsrayfinDocs.modulenamefabric-user-data-functions, and the required-module check would be orphaned. Wiring it up means reconciling those two names, not just adding the path. Until then it takes the hand-authored fallback lane, likeauth-provider-fabric.
Generated Outputs
packages/docgen/dist/ts-sdk/@microsoft/<module>/**(one subtree per TypeDoc entry point). Do not hand-edit.docs/site/docusaurus.config.tsmirrors each per-module subtree intodocs/site/.ts-sdk-unified/<module>/at config-load time and serves the unified tree through a single Docusaurus docs plugin instance.
Conventions
- Each TypeDoc entry point must be a directory whose last path segment maps
to a
rayfin-<segment>module declared in that package'srayfinDocsmanifest.docs/site/docusaurus.config.tsderives the required-module set fromentryPointsand fails the build if any derived name has no matchingrayfinDocsapi-reference source. - The
entryPointStrategymust stay"packages"; the docs-site derivation rejects any other strategy because the last-segment mapping no longer produces meaningful module names. - To exclude one public export subpath from TypeDoc without changing its
Node.js or TypeScript resolution, add
"typedoc": nullas the first condition for that subpath in the package'sexportsmap. TypeDoc resolves that condition beforetypesorimport; normal consumers ignore it. - Use external links in
packages/docgen/README.mdto avoid TypeDoc asset-copy warnings. - Fix JSDoc/TSDoc
@paramnames to match signatures if TypeDoc warns.
Validation
rush build --to @rayfin/docgen- producesdist/ts-sdk/@microsoft/<module>/trees with at least anindex.mdper module.rush build --to docs-site- mirrors them into the site and renders the unified SDK Reference. Throws if any required TypeDoc output is missing or empty.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 28,693 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 repository76 other files it gives its agents.
- common/config/typedoc/AGENTS.mdAGENTS.md
- docs/site/AGENTS.mdAGENTS.md
- .github/skills/react-best-practices/AGENTS.mdAGENTS.md
- packages/guide/AGENTS.mdAGENTS.md
- packages/host-docs/AGENTS.mdAGENTS.md
- packages/tools/AGENTS.mdAGENTS.md
- packages/tools/cli/AGENTS.mdAGENTS.md
- packages/tools/cli/assets/agent-files/AGENTS.mdAGENTS.md
- packages/tools/common/AGENTS.mdAGENTS.md
- packages/tools/docs-lib/AGENTS.mdAGENTS.md
- packages/tools/mcp/AGENTS.mdAGENTS.md
- packages/tools/vscode/AGENTS.mdAGENTS.md
- packages/typescript-sdk/AGENTS.mdAGENTS.md
- packages/typescript-sdk/auth/AGENTS.mdAGENTS.md
- packages/typescript-sdk/core/AGENTS.mdAGENTS.md
- packages/typescript-sdk/data/AGENTS.mdAGENTS.md
- packages/typescript-sdk/storage/AGENTS.mdAGENTS.md
- packages/udf/udf-worker-extension/AGENTS.mdAGENTS.md
- samples/data-app/AGENTS.mdAGENTS.md
- samples/getting-started-auth/AGENTS.mdAGENTS.md
- samples/notes-app/AGENTS.mdAGENTS.md
- samples/todo-app/AGENTS.mdAGENTS.md
- samples/universal-app/template/AGENTS.mdAGENTS.md
- samples/welcome-app-react-auth/AGENTS.mdAGENTS.md
- samples/welcome-app-react-no-auth/AGENTS.mdAGENTS.md
- samples/welcome-app-typescript/AGENTS.mdAGENTS.md
- hotfix-releaseSkill
- launch-vscode-extensionSkill
- openspec-apply-changeSkill
- openspec-archive-changeSkill
- openspec-bulk-archive-changeSkill
- openspec-continue-changeSkill
- openspec-exploreSkill
- openspec-ff-changeSkill
- openspec-new-changeSkill
- openspec-onboardSkill
- openspec-sync-specsSkill
- openspec-verify-changeSkill
- privacy-dfdSkill
- rayfin-cli-uxSkill
- vercel-react-best-practicesSkill
- react-clean-architectureSkill
- run-cli-e2e-locallySkill
- vscode-react-webview-architectureSkill
- vscode-webview-trpc-messagingSkill
- rayfin-connectorsSkill
- rayfin-functionsSkill
- rayfinSkill
- rayfin-storageSkill
- rayfin-getting-startedSkill
- app-designSkill
- app-validationSkill
- dax-authoringSkill
- fabric-cliSkill
- fabric-sdkSkill
- playwright-cliSkill
- query-designSkill
- schema-discoverySkill
- visualsSkill
- analyticsSkill
- The first 60 shown.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

