capgo-skills
AGENTS.md75 starsChanged 32 days agoMITView on GitHub
This file provides guidance to AI agents and contributors working on this Capacitor plugin. If an example-app/ directory exists, you can test the plugin locally: The example app references the plugin via file:... In skill prose, use npx cap sync <platform> examples. When executing commands locally in this repository, use the repository command policy above. We always support both CocoaPods and Swift Package Manager (SPM). Every plugin must ship a valid *.podspec and Package.swift. Do not remove or break either…
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 repository56 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- capacitor-accessibilitySkill
- capacitor-app-intentsSkill
- capacitor-apple-review-preflightSkill
- capacitor-app-storeSkill
- capacitor-app-upgradesSkill
- capacitor-app-upgrade-v4-to-v5Skill
- capacitor-app-upgrade-v5-to-v6Skill
- capacitor-app-upgrade-v6-to-v7Skill
- capacitor-app-upgrade-v7-to-v8Skill
- capacitor-app-upgrade-v8-to-v9Skill
- capacitor-best-practicesSkill
- capacitor-ci-cdSkill
- capacitor-deep-linkingSkill
- capacitor-ios-resizabilitySkill
- capacitor-ios-security-hardeningSkill
- capacitor-keyboardSkill
- capacitor-mcpSkill
- capacitor-offline-firstSkill
- capacitor-performanceSkill
- capacitor-plugin-spm-supportSkill
- capacitor-pluginsSkill
- capacitor-plugin-upgradesSkill
- capacitor-plugin-upgrade-v4-to-v5Skill
- capacitor-plugin-upgrade-v5-to-v6Skill
- capacitor-plugin-upgrade-v6-to-v7Skill
- capacitor-plugin-upgrade-v7-to-v8Skill
- capacitor-plugin-upgrade-v8-to-v9Skill
- capacitor-push-notificationsSkill
- capacitor-securitySkill
- capacitor-splash-screenSkill
- capacitor-testingSkill
- capacitor-uiscene-migrationSkill
- capawesome-live-update-migrationSkill
- capgo-cli-usageSkill
- capgo-cloudSkill
- capgo-live-updatesSkill
- capgo-native-buildsSkill
- capgo-organization-managementSkill
- capgo-release-managementSkill
- capgo-release-workflowsSkill
- cocoapods-to-spmSkill
- cordova-to-capacitorSkill
- debugging-capacitorSkill
- framework-to-capacitorSkill
- ionic-appflow-migrationSkill
- ionic-designSkill
- ionic-enterprise-sdk-migrationSkill
- ios-android-logsSkill
- konsta-uiSkill
- safe-area-handlingSkill
- skill-creatorSkill
- sqlite-to-fast-sqlSkill
- subscription-app-revenueSkill
- tailwind-capacitorSkill
- webapp-to-capacitorSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
15 rules. About 2 are common, 6 are distinctive, and 7 are very specific to this project.
≈2
Common · estimate
Many files like this have a rule of this kind.
≈6
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
- Very specific: line 34
Repository development and CI commands: use bun, bun run, and bunx.
- Very specific: line 35
Skill content, documentation, and marketing copy: keep standard JavaScript ecosystem commands such as npm install, npm run build, and npx …
- Very specific: line 36
Capacitor and Capgo commands inside skills: prefer npx ...@latest examples.
- Distinctive: line 37
Nested target repositories: if a task operates inside another repository, read that repository's instructions and use its local command …
- Very specific: line 49
If an example-app/ directory exists, you can test the plugin locally:
- Distinctive: line 88
Use headless browser automation by default.
- Common: line 92
Do not replace user-provided tokens, API keys, passwords, certificates, or other secrets in repository files with placeholders unless the …
- Common: line 93
Do not tell the user to rotate secrets unless they explicitly ask for rotation guidance.
- Distinctive: line 94
Use placeholders only in generic examples, templates, or new documentation that is not preserving a user-supplied value.
- Very specific: line 111
Run bun run verify and bun run fmt before opening a PR.
- Distinctive: line 113
If you are an AI agent, that is perfectly fine.
- Distinctive: line 118
Always use NPX in skills and never use Bunx in skill examples.
- Distinctive: line 141
Always rename Swift/Java classes and package IDs when creating a new plugin from a template — leftover names cause registration conflicts.
- Very specific: line 143
Keep temporary files clean: delete or mark with deleteOnExit after use.
- Very specific: line 145
Use Bun for repository commands.
≈ “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
AGENTS.md
This file provides guidance to AI agents and contributors working on this Capacitor plugin.
Quick Start
# Install dependencies
bun install
# Build the plugin (TypeScript + Rollup + docgen)
bun run build
# Full verification (iOS, Android, Web)
bun run verify
# Format code (ESLint + Prettier + SwiftLint)
bun run fmt
# Lint without fixing
bun run lintDevelopment Workflow
- Install -
bun install(never use npm) - Build -
bun run buildcompiles TypeScript, generates docs, and bundles with Rollup - Verify -
bun run verifybuilds for iOS, Android, and Web. Always run this before submitting work - Format -
bun run fmtauto-fixes ESLint, Prettier, and SwiftLint issues - Lint -
bun run lintchecks code quality without modifying files
Command Context Rules
- Repository development and CI commands: use
bun,bun run, andbunx. Do not usenpm,npm run, ornpxfor commands you execute in this repository. - Skill content, documentation, and marketing copy: keep standard JavaScript ecosystem commands such as
npm install,npm run build, andnpx ...unless the skill is specifically about Bun. - Capacitor and Capgo commands inside skills: prefer
npx ...@latestexamples. Do not rewrite skill examples tobunxjust because this repository itself uses Bun. - Nested target repositories: if a task operates inside another repository, read that repository's instructions and use its local command policy.
Individual Platform Verification
bun run verify:ios
bun run verify:android
bun run verify:webExample App
If an example-app/ directory exists, you can test the plugin locally:
cd example-app
bun install
bun run startThe example app references the plugin via file:... In skill prose, use npx cap sync <platform> examples. When executing commands locally in this repository, use the repository command policy above.
Project Structure
src/definitions.ts- TypeScript interfaces and types (source of truth for API docs)src/index.ts- Plugin registrationsrc/web.ts- Web implementationios/Sources/- iOS native code (Swift)android/src/main/- Android native code (Java/Kotlin)dist/- Generated output (do not edit manually)Package.swift- SwiftPM definition*.podspec- CocoaPods spec
iOS Package Management
We always support both CocoaPods and Swift Package Manager (SPM). Every plugin must ship a valid *.podspec and Package.swift. Do not remove or break either integration — users depend on both.
API Documentation
API docs in the README are auto-generated from JSDoc in src/definitions.ts. Never edit the <docgen-index> or <docgen-api> sections in README.md directly. Instead, update src/definitions.ts and run bun run docgen (also runs as part of bun run build).
Versioning
The plugin major version follows the Capacitor major version (e.g., plugin v8 for Capacitor 8). We only ship breaking changes when a new Capacitor native major version is released. All other changes must be backward compatible.
Changelog
CHANGELOG.md is managed automatically by CI/CD. Do not edit it manually.
Browser Automation
Use headless browser automation by default. Use a visible browser only when the user needs to interact with the browser or the task requires an authenticated/manual web flow.
Secrets and Tokens
- Do not replace user-provided tokens, API keys, passwords, certificates, or other secrets in repository files with placeholders unless the user explicitly asks.
- Do not tell the user to rotate secrets unless they explicitly ask for rotation guidance.
- Use placeholders only in generic examples, templates, or new documentation that is not preserving a user-supplied value.
Pull Request Guidelines
We welcome contributions, including AI-generated pull requests. Every PR must include:
Required Sections
- What - What does this PR change?
- Why - What is the reason for this change?
- How - How did you approach the implementation?
- Testing - What did you test? How did you verify it works?
- Not Tested - What is not yet tested or needs further validation?
Rules
- No breaking changes unless aligned with a new Capacitor major release.
- Run
bun run verifyandbun run fmtbefore opening a PR. CI will catch failures, but catching them locally saves time. - Open PRs as draft until CI/CD passes. Wait for all test runs to finish, fix failures, and rerun until green before marking ready for review.
- If you are an AI agent, that is perfectly fine. Just be transparent about it. We care that the code is correct and helpful, not who wrote it.
- We review PRs on a best-effort basis. We may request changes — you are expected to address them for the PR to be merged.
- We use automated code review tools (CodeRabbit, and others). Wait until any "Review in progress" state is gone, then address actionable comments, rerun checks, resolve the comments, and repeat until no actionable review comments remain.
- We have automatic releases. Once merged, your change will ship in the next release cycle.
Always use NPX in skills and never use Bunx in skill examples. NPX ensures the expected package version is used by the consumer. Bun and Bunx are for this repository's development and CI/CD tasks, or for skills specifically about Bun.
PR Template
## What
- [Brief description of the change]
## Why
- [Motivation for this change]
## How
- [Implementation approach]
## Testing
- [What was tested and how]
## Not Tested
- [What still needs testing, if anything]Common Pitfalls
- Always rename Swift/Java classes and package IDs when creating a new plugin from a template — leftover names cause registration conflicts.
- We only use Java 21 for Android builds.
- Keep temporary files clean: delete or mark with
deleteOnExitafter use. dist/is fully regenerated on every build — never edit generated files.- Use Bun for repository commands. Do not use npm or npx for commands you execute in this repo. Use
bunxif you need to run a package binary locally.
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.

