eng-ai-features
Skill23 starsChanged 7 days agoMITView on GitHub
Ship user-facing AI features with grounding, explicit consent, deterministic fallbacks, kill switches, cost estimates, and admin-only model controls. Use when adding or changing product AI features, prompts, embeddings, or admin MCP surfaces.
In this repository46 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agents-autonomous-loopsSkill
- agents-correctSkill
- agents-create-verification-skillSkill
- agents-reflectSkill
- agents-swarmSkill
- alchemy-infraSkill
- cloudflare-edge-hardeningSkill
- cloudflare-gradual-releaseSkill
- comms-howSkill
- comms-impactSkill
- comms-interrogateSkill
- comms-promo-videoSkill
- comms-slidesSkill
- comms-technical-writingSkill
- comms-unslopSkill
- comms-whySkill
- drizzle-postgresSkill
- effect-boundary-validationSkill
- effect-seam-migrationSkill
- effectSkill
- eng-agent-dx-cli-scaleSkill
- eng-benchmark-checklistSkill
- eng-blast-radiusSkill
- eng-change-checklistSkill
- eng-cutover-verificationSkill
- eng-data-backward-compatSkill
- eng-migrationSkill
- eng-monorepoSkill
- eng-qa-cujsSkill
- eng-state-machineSkill
- eng-tddSkill
- eng-testingSkill
- gh-ci-triageSkill
- gh-issue-burndownSkill
- gh-pr-commit-reviewSkill
- gh-pr-feedback-loopSkill
- nix-darwinSkill
- reg-suitSkill
- sentry-bugfixSkill
- sentry-perfSkill
- seo-coachSkill
- svelte-shadcnSkill
- svelte-ui-deliverySkill
- ui-audit-loopSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
Keep admin controls, prompt details, and tooling strings out of user screens, metadata, client bundles, and navigation.
≈ “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
AI features
Ship user-facing AI features under grounding, consent, fallback, and cost guardrails. Keep model controls, prompts, tooling details, internal MCP discovery, and unreleased experiments restricted to platform admins.
Repo facts (from AGENTS.md): runtime feature-flag or off-switch mechanism, user data export and account-deletion fixtures, admin role and auth or MCP paths, PR cost-reporting rules, and product copy guidelines.
User-facing features
- Grounded. Base statements about stored records on stored facts and link their source and checked date. Never let a model assert a policy or record fact the store lacks. Quote stored text rather than paraphrasing it.
- Consent and ownership. Send user content to a model only after an explicit user action, and state what is sent. Keep model output owner-scoped. Any persisted output is an owned record included in data export and account deletion. Never share user content across accounts or use it for training.
- Deterministic fallback. Give every feature a deterministic non-AI path. A missing binding, timeout, or classified provider failure falls back to it under a total deadline, and the page still works.
- Off switch and cost. Guard every feature with a setting that disables it at runtime. State the cost driver, the monthly cost per account at target scale, and that setting name in the PR description.
- Honest copy. Describe what the feature does in product vocabulary (
comms-unslop). Label generated text as generated. Avoid chat personas, hype, and model or vendor names.
Admin-only surfaces
- Ordinary organization, team, editor, or publisher roles grant no platform-admin access.
- Authorize the current session and role on the server before reading inputs or acquiring storage. Return a generic 404 to non-admins without protocol or authentication details.
- Where a standard MCP client requires OAuth discovery, answer 401 with a discovery challenge and serve
/.well-knownmetadata that names only the authorization server and scope, with no tool, role-holder, or account names. Show signed-in non-admins a plain denial on the consent page. - Issue admin tokens only from an admin's consent, and reread the account's role and ban status on every request so revocation and role removal take effect immediately.
- Keep admin controls, prompt details, and tooling strings out of user screens, metadata, client bundles, and navigation.
Verify
- User features: test the AI path, the deterministic fallback path, the off switch, and owner scoping. When output is persisted, extend the export and deletion round-trip test.
- Admin surfaces: test the admin path plus anonymous, expired, revoked, banned, and signed-in non-admin requests.
- Confirm copy rules preserve user-authored content and factual source text that mention AI.
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.

