agentleFS
yaacovcorcosyaacovcorcos/papiskill/AGENTS.md

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.

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
  1. Distinctive:

    Run from repo root unless a command says otherwise.

    line 40
  2. Distinctive:

    Do not hide product complexity in giant pages.

    line 61
  3. Distinctive:

    Test the real risk changed, not only the easiest function to call.

    line 70
  4. Distinctive:

    Use the smallest truthful layer: pure unit tests for parsing and formatting, route/API tests for HTTP contracts, server tests for auth and …

    line 71
  5. Distinctive:

    Every bug fix needs a regression test or a written reason in the PR explaining why it cannot be automated yet.

    line 72
  6. Common:

    Do not commit generated secrets or local env files.

    line 109
  7. Distinctive:

    Use conventional commit messages.

    line 110
  8. Very specific:

    Before pushing delivery work, run npm run check.

    line 111
  9. Distinctive:

    Keep commits scoped and inspect git status before every commit.

    line 112
  10. Distinctive:

    Update relevant docs in the same change when you change:

    line 116

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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-core for portable skill schema and validation
  • packages/cli for the papiskill command

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.

TaskCommand
Installnpm install
Dev appnpm run dev
Typechecknpm run typecheck
Lintnpm run lint
Testnpm run test
Buildnpm run build
Full checknpm run check
Prisma generatenpm run db:generate
Prisma migrate devnpm run db:migrate
Prisma migration statusnpm run db:status
Prisma migrate productionnpm run db:deploy
Generate web registrynpm run registry:generate
Validate registrynpm 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 generated dist output.

Route-To-Test Map

Changed areaRequired 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 codeownership/privacy regression tests, including negative cases
apps/web/prisma/**Prisma generate/typecheck and migration/runbook updates
public registry package filesregistry validation and package contract docs when format expectations change
rendered auth, dashboard, skill browsing, editor, or download flowscomponent/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.yml and SKILL.md.
  • Additional files are allowed under scripts/, assets/, examples/, and docs/.
  • 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 main is 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 status before 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.