premortem
AGENTS.md2 starsChanged 5 months agoApache-2.0View on GitHub
- Reads credentials
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 31,774 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 repository168 other files it gives its agents.
- .cursor/rules/CO-STAR-UI-CREATOR/AGENT.mdcCursor rule
- .cursor/rules/CO-STAR-UI-CREATOR/CO-STAR-CREATOR.mdCursor rule
- .cursor/rules/CO-STAR-UI-CREATOR/CO-STAR-PROMPT.mdCursor rule
- .cursor/rules/CO-STAR-UI-CREATOR/README.mdCursor rule
- .cursor/rules/CO-STAR-UI-CREATOR/ui.mdCursor rule
- 401-403-bypass-techniquesSkill
- active-directory-acl-abuseSkill
- active-directory-certificate-servicesSkill
- active-directory-kerberos-attacksSkill
- agent-browserSkill
- ai-ml-securitySkill
- ai-seoSkill
- android-pentesting-tricksSkill
- anti-debugging-techniquesSkill
- api-auth-and-jwt-abuseSkill
- api-authorization-and-bolaSkill
- api-recon-and-docsSkill
- api-secSkill
- arbitrary-write-to-rceSkill
- arize-adminSkill
- arize-ai-provider-integrationSkill
- arize-annotationSkill
- arize-compliance-auditSkill
- arize-datasetSkill
- arize-evaluatorSkill
- arize-experimentSkill
- arize-instrumentationSkill
- arize-linkSkill
- arize-prompt-optimizationSkill
- arize-promptsSkill
- arize-traceSkill
- authbypass-authentication-flawsSkill
- auth-secSkill
- binary-protection-bypassSkill
- browser-exploitation-v8Skill
- building-nango-functions-locallySkill
- building-nango-functions-remotelySkill
- building-nango-functionsSkill
- business-logic-vulnerabilitiesSkill
- business-logic-vulnSkill
- classical-cipher-analysisSkill
- clickjackingSkill
- cmdi-command-injectionSkill
- code-obfuscation-deobfuscationSkill
- compliance-checkSkill
- compliance-trackingSkill
- container-escape-techniquesSkill
- core-engineeringSkill
- cors-cross-origin-misconfigurationSkill
- crlf-injectionSkill
- csp-bypass-advancedSkill
- csrf-cross-site-request-forgerySkill
- csv-formula-injectionSkill
- d3-visualizationSkill
- dangling-markup-injectionSkill
- defi-attack-patternsSkill
- dependency-confusionSkill
- deserialization-insecureSkill
- dns-rebinding-attacksSkill
- documentation-writerSkill
- The first 60 shown.
The file
We split this AGENTS.md into the rules it gives an agent
6 rules. About 0 are common, 0 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 3
Prefer native modular Next.js components over Framer/Unframer iframe embeds when rebuilding marketing or landing UI.
- Very specific: line 4
Use existing assets under public/ (especially apps/web/public/logo/, public/static/*.png demo frames, and raster refs in …
- Very specific: line 5
Verify MCP server connectivity with scripts/mcp/verify-all.ts when working with the project's MCP configuration.
- Very specific: line 11
Avoid em dash punctuation (—) in Premortem application UI and copy.
- Very specific: line 12
Keep .env.example minimal with no duplicate variables.
- Very specific: line 14
Prefer real runtime/API data over static mocks in /app and BFF routes.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 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
Learned User Preferences
- Prefer native modular Next.js components over Framer/Unframer iframe embeds when rebuilding marketing or landing UI.
- Use existing assets under
public/(especiallyapps/web/public/logo/,public/static/*.pngdemo frames, and raster refs inapps/web/public/landing/) when implementing designs; compare against modular components inapps/web/src/components/landing/. - Verify MCP server connectivity with
scripts/mcp/verify-all.tswhen working with the project's MCP configuration. - GitLab published findings must default to CDN logo plus clickable public site links (currently
premortem.jstn.site) in the attribution footer, not plain text alone. - Landing UI uses custom extracted CSS, not Tailwind/shadcn, for marketing and auth surfaces. Build with landing-native components and
landing.css. shadcn/ui is installed undersrc/components/ui/for optional future use but auth routes use landing tokens. - For marketing, auth, and reviewer console (
/app) UI work, reuse existing blocks and layouts as the design source of truth; apply theui-ux-pro-maxskill for UI/UX work. - Consult
.agents/rules/(umbrellaCORE-BEHAVIOR.md,MISSION.md,PREDICTION-POLICY.md,data-retention.md,failure-policy.md, and domain split files),docs/architecture/adr-0001-canonical-product-and-system-design.md, and.agents/skills/when implementing product content or filling application gaps; structure/docswith Diátaxis (Tutorials, How-To Guides, Reference, Explanations). Marketing docs shareapp/docs/layout.tsxwith a persistent sidebar; preserve docs nav scroll across page navigations. JSON schemas in.agents/schemas/. Do not reference.internal/paths in public or tracked docs;.internal/is gitignored. - Agent skills are categorized under
.agents/skills/(behavior: stop-slop, humanizer; security: ai-security-arsenal; engineering: mattpocock/skills; llm-ops: promptfoo, langfuse, invariant; reference: awesome-ai-software-engineering). Cursor bridges mirror behavior and llm-ops skills under.cursor/skills/. Prompt regression gate:pnpm run eval:prompts. - Avoid em dash punctuation (
—) in Premortem application UI and copy; use colons, commas, periods, or hyphens instead. Do not mention external reference projects (e.g. go-mirofish, mirofish) in user-facing Premortem strings or docs; preserve Premortem brand identity. - Keep
.env.exampleminimal with no duplicate variables; group by concern and comment pooler vs direct URLs clearly. - When updating
README.mdorSECURITY.md, follow reference structure and annotation style from agentfs-coreREADME.mdand HyperkitSECURITY.md; use repo-local logos (public/logo/png/Premortem_abstract.png) in README branding tables and avoid broken third-party CDN badge URLs. Public onboarding copy should lead with hosted try atpremortem.jstn.site/signupbefore local clone; keep GitHub presentation neutral in hero and Projects until provider coverage is production-ready (Projects defaults to GitLab). - Prefer real runtime/API data over static mocks in
/appand BFF routes; runpnpm run verify:envafter updating.env.localto confirm configured (real GitLab + LLM) vs fixture mode; deprecated in-memorystore.tspaths are not production targets.
Learned Workspace Facts
- pnpm monorepo (
pnpm@9.12.0) with Turbo; primary web app atapps/web, local dev viapnpm run dev. - Marketing landing page is composed from modular components in
apps/web/src/components/landing/;app/page.tsxrendersLandingPagedirectly. Raster mockups inapps/web/public/landing/; brand SVGs underapps/web/public/logo/. No Framer/Unframer; styles inlanding.csswith viewport scaling vialanding-scale.tsxand mobile reflow inlanding-responsive.css. Legacy Framer export atapps/web/src/vendor/premortem-landing/is reference-only (excluded fromtsconfig.jsonviasrc/vendor/**). - Product mission, prediction policy, data retention, and failure handling:
.agents/rules/MISSION.md,PREDICTION-POLICY.md,data-retention.md,failure-policy.md. Architecture context:docs/architecture/adr-0001-canonical-product-and-system-design.md. - Marketing routes (
/products,/solutions,/how-it-works,/privacy,/terms,/docs,/signup,/loginand subpages) sharemarketing-page-layout.tsxorblocks/marketing-doc-layout.tsx; copy lives insrc/content/marketing/; reusable blocks insrc/components/landing/blocks/; URLs insrc/lib/marketing-links.tsandsrc/lib/auth-links.ts. - Premortem reviewer console lives at
/appunder route groupapp/(os)/; legacy/reviewsredirects to/app. Implementation insrc/components/premortem-os/with sharedos-*primitives; OS design tokens indesign-system/premortem/MASTER.md(Tailwind-based, distinct from marketinglanding.css). UI branding insrc/lib/premortem-os/branding.ts; GitLab publish footers usepackages/domain/src/branding.ts(renderPremortemPublishAttribution) with production CDN logo athttps://premortem.jstn.site/logo/svg/premortem-mark.svg. Runtime data flows web BFF →apps/api→@premortem/orchestrator; semantic vocabulary centralized in@premortem/domain. Snapshot read model:AuditRunSnapshotfrom orchestrator. Business tier limits in@premortem/dbentitlements (PLAN_LIMITS). Local dev fixture IDs:LOCAL_DEV_FIXTUREin domain (re-exported by@premortem/db). Legacy in-memorystore.tsis deprecated for runtime paths. Continuous Audit toggle (continuousAuditEnabled, sidebar + dashboard) defaults to OFF: OFF = manual scans only; ON = ~90s idle rotation when no active run; turning OFF does not cancel in-flight audits. Stop all (POST /api/workspace/runtime/stop-all) disables continuous audit and cancels queued/running/paused runs so the operator can start manual scans; per-audit Resume applies to individually paused checkpointed runs. Integration providers sync Work Item Attributes as automated metadata/tags via workspace APIs. BFFPOST /api/audits/runreturns 202 withauditRunId(no 120s server poll); client tracks progress via audit refetch. API routes reject clientorganizationIdthat mismatches the session actor org (403)./apphard-locks only on 401; other load errors toast; fixture-mode banner whenPREMORTEM_AUTH_DISABLEDis active. Workflow canvas merges repository graph with Phoenix semantic spans (GET /api/audits/[id]/semantic-graph); node click opens inspect panel. - MCP server definitions live in repo-root
mcp.local.json(fallbackmcp.json); Cursor does not automatically load this file—verify withscripts/mcp/verify-all.ts. Toolbox Postgres MCP runs viascripts/mcp/run-toolbox-postgres.shand requiresDATABASE_URLin.env.local. Phoenix MCP (Phoenix,Phoenix Docsinmcp.json) usesscripts/mcp/run-phoenix-mcp.shand requiresPHOENIX_API_KEY; runtime agent introspection uses the same@arizeai/phoenix-mcppackage in@premortem/agent-builder. Hackathon alignment:docs/guides/phoenix-arize-track.md,pnpm run smoke:arize. Official GitLab MCP atgitlab.com/api/v4/mcpuses OAuth in Cursor; static PAT in env is not the supported auth path. GitLab OAuth for Supabase sign-in and/appworkspace connect both use scopesread_user api read_repository(app/api/auth/[provider]/route.ts,gitlab-oauth.ts). - Production smoke (
pnpm run smoke:production-readiness) requires a GitLab Personal Access Token with classicapiscope for issue publish (GITLAB_TOKENorGITLAB_SMOKE_PUBLISH_TOKEN). Cursor MCP OAuth tokens andread_api-only PATs fail publish with 403 insufficient_scope; verify withpnpm run smoke:verify-gitlab-publish. Review-edit smoke (scripts/smoke/smoke-review-edit.ts) preserves synthesized issue titles and only patcheswhyItMatters/recommendedActionSummary. - GitLab repository enable (
POST /api/workspace/integrations/:id/repositories/enable) verifies with the selected integration token (not org-level fallback) and accepts read-only discovered repos without requiring issue-write access. Audit scans gate onassertAuditReadiness(LLM + GitLab read); publish gates onassertGitLabPublishReadiness(issue write/create). GitLab API calls usegitLabAuthHeaders(Bearer + PRIVATE-TOKEN) so OAuth tokens work on GitLab.com. - Canonical stack (ADR §7): Next.js, Supabase Auth/Postgres/Storage, Prisma, TanStack Query, Sentry, PostHog, Stripe, GitLab, Neo4j graph store. LLM: Gemini 3 Flash Preview (
gemini-3-flash-preview) primary whenGEMINI_API_KEYset. Workflow canvas uses@xyflow/reactwithelkjsauto-layout. SDK wiring lives inpackages/observability,packages/storage,packages/db,apps/web/src/lib/canonical/, and reviewer hooks inuse-os-console-data.ts. When Phoenix tracing is enabled, Sentry initializes withskipOpenTelemetrySetupto avoid OTel conflicts. Verify env/SDK readiness withnode scripts/canonical/verify-stack.mjs. Cursor MCP plugins for Sentry, PostHog, Stripe, and Prisma complement repo MCP config for ops and debugging. pnpm run buildmay fail on pre-existing dashboard type errors aroundAuditRunSnapshotin@premortem/orchestrator, independent of landing-page changes.pnpm run devrunsscripts/dev/run-local-stack.ts(db migrate, then API + web). Default ports: web:13000, API:18787(overridable viaPREMORTEM_WEB_PORT/PREMORTEM_API_PORT). Local OAuth: setNEXT_PUBLIC_APP_URL=http://127.0.0.1:13000and match GitLab redirect URIs; do not mixlocalhostand127.0.0.1(breaks PKCE/state cookies; middleware canonicalizes loopback for auth/integration routes). Supabase OAuth handlers attach PKCE/session cookies viasrc/lib/supabase/route-handler.ts. Configured mode (.env.localhasDATABASE_URL+GITLAB_TOKEN+ LLM + Supabase keys perscripts/lib/configured-env.ts): real Supabase auth (user.id profileId), personal workspace onboarding, real GitLab ingest and LLM. Fixture mode when credentials missing:PREMORTEM_AUTH_DISABLED=1+LOCAL_DEV_FIXTUREfor smoke only. Repo-root.env.localis loaded viascripts/load-local-env.ts(also wired inapps/web/next.config.ts).pnpm run docker:upstarts Neo4j and local Postgres viadocker-compose.ymlwhen using localhost database URLs. Default GitLab demo repo:GITLAB_EXTERNAL_PROJECT_ID=jstn-studio/meta-architect. Purge smoke audit rows withpnpm run db:reset-audits; run a configured-mode audit withpnpm run audit:localor from/app. Supabase free-tier Postgres: runtimeDATABASE_URLuses transaction pooler port:6543withpgbouncer=true; Prisma migrations useDIRECT_URLsession pooler:5432on the same.pooler.supabase.comhost, not directdb.*.supabase.co.
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.

