papiskill
AGENTS.md2 starsChanged 5 months agoMITView on GitHub
This file is the always-loaded operating contract for this repository. PapiSkill is a production registry, editor, and CLI for portable SKILL.md packages. The app is for any agent setup, not only Codex. The product promise is: Discover, fork, edit, install, and contribute high-quality agent skills. Run from repo root unless a command says otherwise.
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 35,337 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.
- CLAUDE.mdCLAUDE.md
The file
We split this AGENTS.md into the rules it gives an agent
10 rules. About 1 is common, 8 are distinctive, and 1 is very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈8
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
- could be automatic: a setting could enforce it
- Distinctive: line 40
Run from repo root unless a command says otherwise.
- Distinctive: line 61
Do not hide product complexity in giant pages.
- Distinctive: line 70
Test the real risk changed, not only the easiest function to call.
- Distinctive: line 71
Use the smallest truthful layer: pure unit tests for parsing and formatting, route/API tests for HTTP contracts, server tests for auth and …
- Distinctive: line 72
Every bug fix needs a regression test or a written reason in the PR explaining why it cannot be automated yet.
- Common: line 109
Do not commit generated secrets or local env files.
- Distinctive: line 110
Use conventional commit messages.
- Very specific: line 111
Before pushing delivery work, run npm run check.
- Distinctive: line 112
Keep commits scoped and inspect git status before every commit.
- Distinctive: line 116
Update relevant docs in the same change when you change:
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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
PapiSkill Agent Constitution
This file is the always-loaded operating contract for this repository.
Product
PapiSkill is a production registry, editor, and CLI for portable SKILL.md packages. The app is for any agent setup, not only Codex.
The product promise is:
Discover, fork, edit, install, and contribute high-quality agent skills.
Stack
- Next.js App Router in
apps/web - React 19
- TypeScript
- Prisma with Postgres
- Supabase Postgres for deployed database
- Better Auth with GitHub OAuth as identity authority
- Vercel deployment for
papiskill.com - npm workspaces
packages/skill-corefor portable skill schema and validationpackages/clifor thepapiskillcommand
Directory Rules
- Web app code lives in
apps/web. - CLI code lives in
packages/cli. - Shared skill parsing, schema, validation, and install target logic lives in
packages/skill-core. - Globally published curated skills live in
registry/official. - Community Git-reviewed skills may live in
registry/community. - Runtime user forks live in Postgres, not in the registry directories.
- Plans live in
docs/plans. - Runbooks live in
docs/runbooks. - Architecture decisions live in
docs/architecture.
Canonical Commands
Run from repo root unless a command says otherwise.
| Task | Command |
| Install | npm install |
| Dev app | npm run dev |
| Typecheck | npm run typecheck |
| Lint | npm run lint |
| Test | npm run test |
| Build | npm run build |
| Full check | npm run check |
| Prisma generate | npm run db:generate |
| Prisma migrate dev | npm run db:migrate |
| Prisma migration status | npm run db:status |
| Prisma migrate production | npm run db:deploy |
| Generate web registry | npm run registry:generate |
| Validate registry | npm run registry:validate |
Quality Bar
- The app must be fast, calm, professional, minimal, and clear.
- Do not hide product complexity in giant pages. Split routes and components by workflow.
- Public pages must be useful without login.
- Mutating profile, fork, token, and private skill actions must require authenticated ownership.
- Globally published skills are collaborator-published and visible in the main registry. User profile skills can be public or private by user choice.
- The CLI is part of v1, not an afterthought.
- Docs are product surface. Keep them accurate when behavior changes.
Testing Policy
- Test the real risk changed, not only the easiest function to call.
- Use the smallest truthful layer: pure unit tests for parsing and formatting, route/API tests for HTTP contracts, server tests for auth and ownership, CLI tests for install/download behavior, and browser smoke tests for rendered critical paths.
- Every bug fix needs a regression test or a written reason in the PR explaining why it cannot be automated yet.
- Mock only hard process boundaries such as auth providers, network fetches, Vercel/Supabase services, and filesystem temp roots. Do not mock local validation, serialization, permission, or install-target logic just to make a test easier.
- Tests must reset changed environment variables, current working directory, timers, temp directories, and module mocks.
- Database fallback behavior is not a substitute for privacy tests. Public file-registry fallback may cover global skills only; profile, private, token, and ownership behavior must be tested on the DB/server path.
- Package builds must not emit
*.test.*files into published artifacts, and test runners must ignore generateddistoutput.
Route-To-Test Map
| Changed area | Required test evidence |
packages/skill-core/** | validation/schema tests plus npm run registry:validate when registry packages are affected |
packages/cli/** | CLI unit tests and API contract coverage for consumed response shapes |
apps/web/src/app/api/** | route contract tests for status codes, response shape, auth, and fallback behavior |
apps/web/src/lib/server/skills.ts, profile, fork, token, or auth code | ownership/privacy regression tests, including negative cases |
apps/web/prisma/** | Prisma generate/typecheck and migration/runbook updates |
| public registry package files | registry validation and package contract docs when format expectations change |
| rendered auth, dashboard, skill browsing, editor, or download flows | component/route tests plus a browser smoke check when UI behavior changes |
Auth and Data
- Better Auth is the identity authority.
- Supabase Auth is not used.
- GitHub OAuth is the primary login provider.
- App DB rows must enforce ownership in server code.
- Private forks and tokens must never be exposed through public routes.
- API tokens are hashed at rest.
Skill Package Contract
- A skill package is a directory with
skill.ymlandSKILL.md. - Additional files are allowed under
scripts/,assets/,examples/, anddocs/. - The package format must remain portable across Codex, Claude Code, Cursor, and generic agent setups.
- Validation must distinguish structure warnings from security warnings.
Git Workflow
- Root
mainis the canonical branch. - Do not commit generated secrets or local env files.
- Use conventional commit messages.
- Before pushing delivery work, run
npm run check; it includes registry validation. - Keep commits scoped and inspect
git statusbefore every commit.
Documentation Obligation
Update relevant docs in the same change when you change:
- schema or migrations
- CLI commands
- package format
- auth or permissions
- install behavior
- deployment requirements
- registry contribution flow
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.

