rayfin / storage
AGENTS.md646 starsChanged 24 days agoMITView on GitHub
This package provides the standalone storage SDK for blob operations (upload, download, list, delete) with typed folder access. Run these from packages/typescript-sdk/storage/:
We split this AGENTS.md into the rules it gives an agent
8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 7
Run these from packages/typescript-sdk/storage/:
- Distinctive: line 31
Schema Alignment: Keep folder names and schema keys aligned.
- Distinctive: line 32
Composition: Prefer composing small helpers around folder clients over subclassing (clients are regenerated on access).
- Distinctive: line 34
Options: Use options objects for prefixes, content types, and signals.
- Very specific: line 36
Error Codes: Document new codes in storageErrorCodes.ts.
- Very specific: line 46
Infrastructure: Run pwsh -File developer-setup.ps1 start from packages/host.
- Very specific: line 47
Service: Run dotnet run in packages/host/Microsoft.Rayfin.WebService.
- Very specific: line 49
Troubleshoot: If containers are unhealthy, run pwsh -File developer-setup.ps1 clean then start.
≈ “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
@microsoft/rayfin-storage Agent Instructions
This package provides the standalone storage SDK for blob operations (upload, download, list, delete) with typed folder access.
Commands
Run these from packages/typescript-sdk/storage/:
# Build
rush build --to @microsoft/rayfin-storage
# Test
rushx test # Unit tests
rushx test:watch # Watch mode
rushx test:integration # Integration tests (requires host services)
# Lint
rushx lintArchitecture
- Entrypoint:
createStorageClientreturns a proxy mapping schema keys to folder clients. - Clients: Folder clients enforce strongly typed metadata from the schema.
- Network: Uses shared
ApiClient(@microsoft/rayfin-lib) for retries, auth, and error shaping. - Errors: Unified via
StorageErrorCodeliterals andisStorageErrorguard.
Implementation Rules
- Schema Alignment: Keep folder names and schema keys aligned; proxy maps properties directly to service folders.
- Composition: Prefer composing small helpers around folder clients over subclassing (clients are regenerated on access).
- Data Shapes: Extend
StorageObjectRefin schema to support multiple data shapes per folder. - Options: Use options objects for prefixes, content types, and signals; do not mutate headers manually.
- Exports: Align public exports with
src/index.ts. - Error Codes: Document new codes in
storageErrorCodes.ts.
Testing Strategy
- Unit:
src/__tests__/StorageClient.test.tsuses mockedApiClientto validate request shaping. - Integration:
src/__tests__/integrationruns against the host web service.
Integration Test Workflow
- Prerequisites: Docker Desktop running (for SQL/Azurite).
- Infrastructure: Run
pwsh -File developer-setup.ps1 startfrompackages/host. - Service: Run
dotnet runinpackages/host/Microsoft.Rayfin.WebService. - Run: Execute
rushx test:integrationfrom this package. - Troubleshoot: If containers are unhealthy, run
pwsh -File developer-setup.ps1 cleanthenstart.
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/docgen/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/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.

