functions-capability
Skill646 starsChanged 56 days agoMITView on GitHub
Apply and build the Universal App functions capability. Use for trusted server-side logic, secrets, external APIs, custom model endpoints, published Fabric data agents, webhooks, or privileged operations.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- microsoft/ignite26-PREL40word for word, first seen Nov 22, 2026
Other versions1 project uses a version of this.
Word for word · 1
- microsoft/ignite26-PREL40★ 3100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
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/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
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. About 0 are common, 13 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈13
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Use functions when code must be trusted, needs a secret, or must call a service without exposing credentials or access tokens to the …
- Distinctive: line 16
Run this before customizing the app:
- Very specific: line 30
Do not copy these files by hand.
- Very specific: line 44
Read .agents/skills/rayfin-functions/SKILL.md directly from disk, then read the package documentation under node_modules/@microsoft/ before …
- Distinctive: line 47
Do not stop or restart.
- Very specific: line 58
Use the documented root npm run dev session for type generation and local function development.
- Distinctive: line 62
Before starting a Fabric-backed development session that may provision or reuse a backend, read the installed local-development guide and …
- Distinctive: line 67
Do not deploy only to obtain generated types.
- Distinctive: line 68
If the approved development session cannot start, report the prerequisite or target blocker and leave generated files unchanged.
- Distinctive: line 77
Read the installed skill directly from disk and read the package docs relevant to the function.
- Distinctive: line 84
Keep explicit input and output types on every registered function, and keep the development session running while registered signatures …
- Distinctive: line 86
Wait for the watcher to refresh the generated schema after each signature edit.
- Very specific: line 88
Never edit packages/functions/src/types.ts by hand.
- Very specific: line 89
Never cast client.functions, the Rayfin client, or a handwritten invoker to bypass a function missing from AppFunctionsSchema.
- Very specific: line 93
Run npm run validate:functions and confirm every authored udf.func() registration is present in AppFunctionsSchema with no Functions-client …
- Very specific: line 96
After generated types are current, run the root npm run typecheck and npm run build gates.
- Distinctive: line 101
Run the normal app validation and deployment workflow.
- Distinctive: line 105
Keep secrets and access tokens inside the function.
- Distinctive: line 106
Never put secrets in chat, source, YAML values, frontend environment variables, command arguments, logs, or function output.
- Distinctive: line 108
Never log prompts, user content, authorization headers, access tokens, raw provider bodies, or sensitive exception details.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill 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
Rayfin functions
Use functions when code must be trusted, needs a secret, or must call a service without exposing credentials or access tokens to the browser.
Apply the capability first
Run this before customizing the app:
npm run pack:add -- functionsThe pack enables services.functions, creates the @rayfin-app/functions
workspace package under packages/functions, installs all workspace
dependencies from the root, builds functions before the frontend, and wires
AppFunctionsSchema into the existing client.
The existing Vite adapter forwards the client's default
/functions/<name>/invoke route to the local Functions host selected by
rayfin dev; do not add a direct functionsBaseUrl override.
Do not copy these files by hand.
Reapplying the pack preserves authored functions and generated types unless
--force-seeds is explicitly used.
Install guidance and use the workspace-aware development session
Install or refresh the version-matched functions agent context separately:
npx rayfin init ai-files install --enable skill:rayfin-functions --non-interactiveThe active session does not refresh its skill registry after installation, so
do not call the skill tool for rayfin-functions in the same turn.
Read .agents/skills/rayfin-functions/SKILL.md directly from disk, then read
the package documentation under node_modules/@microsoft/ before writing
Rayfin APIs.
Do not stop or restart.
For Functions authentication, read the Application authentication section in the installed @microsoft/rayfin-guide documentation at functions/index.md.
Do not run npx rayfin functions init in this workspace template.
The current command writes, installs, builds, and generates types under the
legacy rayfin/functions location instead of the configured
services.functions.path at packages/functions.
That would create a second functions project and leave the workspace package's
generated types stale.
Use the documented root npm run dev session for type generation and local
function development.
It resolves services.functions.path, performs the initial generation in
packages/functions, and watches registered function signature edits.
Before starting a Fabric-backed development session that may provision or reuse
a backend, read the installed local-development guide and obtain the user's
approval for the target workspace.
Satisfy its documented Node.js and Azure Functions Core Tools prerequisites.
Do not deploy only to obtain generated types. If the approved development session cannot start, report the prerequisite or target blocker and leave generated files unchanged. There is no standalone public type-generation command to substitute.
Authoring sequence
- Apply the functions pack.
- Install the version-matched agent context with
npx rayfin init ai-files install --enable skill:rayfin-functions --non-interactive. - Read the installed skill directly from disk and read the package docs relevant to the function.
- With the target approved and local prerequisites available, run
npm run devfrom the workspace root and wait for its initial type-generation pass. - Replace the starter registration in
packages/functions/src/function_app.ts. - Keep explicit input and output types on every registered function, and keep the development session running while registered signatures change. Wait for the watcher to refresh the generated schema after each signature edit.
- Never edit
packages/functions/src/types.tsby hand. Never castclient.functions, the Rayfin client, or a handwritten invoker to bypass a function missing fromAppFunctionsSchema. A green TypeScript build afteras anyoras unknown asis not a valid generated contract. - Run
npm run validate:functionsand confirm every authoredudf.func()registration is present inAppFunctionsSchemawith no Functions-client casts. - After generated types are current, run the root
npm run typecheckandnpm run buildgates. - Invoke the function through the typed client from the frontend.
- Preserve loading, empty, success, expected-failure, and unexpected-failure states.
- Run the normal app validation and deployment workflow.
Security boundary
- Keep secrets and access tokens inside the function.
- Never put secrets in chat, source, YAML values, frontend environment variables, command arguments, logs, or function output.
- Never log prompts, user content, authorization headers, access tokens, raw provider bodies, or sensitive exception details.
- Bound user input, outbound request duration, provider output, and the value returned to the browser.
- Return typed safe results for expected configuration, authentication, provider, and timeout outcomes.
- Surface unexpected failures without returning credentials or provider internals.
For a secret-backed service, continue with external-api-workflows.
For Fabric data-agent access, continue with fabric-data-agent.
What the pack validates
The template tests prove that applying the pack:
- Enables the functions service and its build command.
- Creates
packages/functionsas@rayfin-app/functions. - Wires the generated schema into the frontend client while preserving the Vite same-origin Functions route.
- Fails validation when authored function registrations and
AppFunctionsSchemadiffer. - Rejects frontend casts around the Functions client that hide a stale generated contract.
- Builds functions before the frontend in the root build scripts.
- Preserves authored functions and generated files when reapplied.
- Leaves existing authentication, data, and analytics pack behavior intact.
The pack does not prove that a deployment has its required secret values, resource permissions, or downstream endpoint access. Those checks require a deployed scenario. The template and CLI checks cover missing functions packages, type generation, generated-contract freshness, unsafe Functions-client casts, and workspace build failures separately.
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
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.

