Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "agent-kit",
"displayName": "Mission Kit",
"version": "6.23.0",
"version": "6.25.0",
"description": "Plan, build, ship, and keep shipping. Agent Kit for Claude Code: plans, handoff, durable memory and staging-to-prod gates for long-term projects, followed from Mission Control in your browser.",
"author": {
"name": "agent-kit-startup"
Expand Down
2 changes: 1 addition & 1 deletion .codex-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "agent-kit",
"version": "6.23.0",
"version": "6.25.0",
"description": "Plan, build, ship, and keep shipping. Agent Kit skills for long-term projects with your own coding agents: plans, handoff, durable memory and staging-to-prod gates.",
"author": {
"name": "agent-kit-startup"
Expand Down
2 changes: 1 addition & 1 deletion .cursor-plugin/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"description": "Plan, build, ship, and keep shipping. Agent Kit slash commands, rules and skills for long-term projects with your own coding agents: plans, handoff, durable memory and staging-to-prod gates. Follow the work in Mission Control.",
"keywords": ["agents", "hitl", "handoff", "git-staging", "context", "multi-ide", "anti-slop"],
"license": "Apache-2.0",
"version": "6.23.0",
"version": "6.25.0",
"homepage": "https://github.com/agent-kit-startup/agent-kit",
"websiteURL": "https://agent.missionkit.io/",
"privacyPolicyURL": "https://github.com/agent-kit-startup/agent-kit/blob/main/PRIVACY.md",
Expand Down
2 changes: 1 addition & 1 deletion .cursor/agent-kit.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"schemaVersion": 1,
"version": "6.23.0",
"version": "6.25.0",
"protected": [
".claude/commands/agent-kit.md",
".cursor/HANDOFF.md",
Expand Down
9 changes: 5 additions & 4 deletions .cursor/commands/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ audience: user

Update the Agent Kit layer (L0 + packs + skills) from the public registry, treating this repo as a **consumer** — not the dev factory. Checks the latest released version, compares with what's installed, and applies the update respecting protected L3 paths.

**Check ≠ apply.** Opt-in `updateCheck` and `agent-kit update --check` only notify. Apply always goes through this command's Ask confirm (or an explicit CLI `agent-kit update` invoke by an operator). `updateApply.auto` defaults to `false` and must never silent-write L0.
**Check ≠ apply.** The update notice (default on; opt-out `updateCheck.enabled: false`) and `agent-kit update --check` only notify. Apply always goes through this command's Ask confirm (or an explicit CLI `agent-kit update` invoke by an operator). `updateApply.auto` defaults to `false` and must never silent-write L0.

## When to Use

- When you want to check if a newer Agent Kit release is available
- To pull the latest rules, commands, skills, and pack updates from the public repo
- After a new `agent-kit-startup/agent-kit` release (check [releases](https://github.com/agent-kit-startup/agent-kit/releases))
- After a sessionStart nudge (when `updateCheck.enabled` is true) that reports an update available
- After a new release, or when the sessionStart update notice reports something behind

**Several repos behind?** The operator types `agent-kit installs scan`, then `agent-kit update --all` (one plan, one confirm, one PR/MR per repo, no merge). It refuses in agent sessions; never run it here.

## Hard stops

Expand Down Expand Up @@ -142,6 +143,6 @@ Agent: Running agent-kit update... Done! 8 updated, 2 added, 1 protected.
```
Or use the URL directly via `--url`.

- **"npx resolution failed"**: Ensure Node.js ≥18 is available. Try `pnpm exec agent-kit update` as fallback.
- **"npx resolution failed"**: Needs Node.js 22.12+. Try `npx -y @dadado/agent-kit-cli update` as fallback.

- **"Registry URL differs from installed"**: The current manifest may point to the dev repo. The update will switch it to the public repo — that's correct for consumer mode.
2 changes: 1 addition & 1 deletion .cursor/context/config.example.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"tickThreshold": 3
},
"updateCheck": {
"enabled": false,
"enabled": true,
"intervalDays": 7,
"lastCheckedAt": null
},
Expand Down
46 changes: 11 additions & 35 deletions .cursor/rules/cursor-skills-api.mdc
Original file line number Diff line number Diff line change
@@ -1,46 +1,22 @@
---
description: CURSOR-SKILLS rules for APIs (REST, GraphQL, gRPC). OpenAPI, tests, versioning.
description: Kit guidance for APIs (REST, GraphQL, gRPC): contract first, versioning, one error envelope, contract tests.
globs: "**/api/**/*,**/*-api*,**/swagger.*,**/openapi.*,**/*.graphql,**/*.proto"
alwaysApply: false
---

# CURSOR-SKILLS - API
# APIs (REST, GraphQL, gRPC)

Source: [cursor-skills/api](https://github.com/araguaci/cursor-skills/tree/main/api)
## Contract

## CURSOR setup
- The schema (OpenAPI, GraphQL SDL, `.proto`) is the source of truth. Code and docs derive from it, or CI checks them against it.
- Version the API (path or header). Inside one version, changes are additive only; deprecate with a date and a `Sunset` header.

- REST Client, Thunder Client, or Postman; JSON Tools; docs generator; Swagger Viewer.
## Behavior

## Typical structure
- One error envelope for every failure: code, message, details, request id. Use real status codes; never a `200` with an error body.
- Validate input at the edge. Every list endpoint paginates. Unsafe retries (charges, creates) take an idempotency key.
- Authentication and authorization are on by default; public routes are an explicit allowlist. Rate-limit by caller.

```
project/
├── src/ ├── tests/ ├── docs/ ├── schemas/
├── swagger.yaml └── .env
```
## Tests

## Patterns

- REST: correct verbs and resources; HTTP status codes; versioning; JSON.
- **GraphQL**: queries, mutations, subscriptions; schema; introspect; validation.
- **gRPC**: services, methods, Protocol Buffers; error handling.

## Documentation

- OpenAPI/Swagger; request/response examples; error codes; authentication.
- Tools: Swagger/OpenAPI, Postman, Insomnia, ReDoc.

## Security and quality

- Validate inputs; auth; rate limit; CORS; HTTPS.
- Prettier, ESLint; endpoint tests (unit + integration); coverage ≥ 80%.

## REST Client config (example)

```json
{
"editor.formatOnSave": true,
"rest-client.environmentVariables": { "baseUrl": "http://localhost:3000" }
}
```
- Contract tests against the schema, plus one happy path and one failure path per endpoint.
55 changes: 12 additions & 43 deletions .cursor/rules/cursor-skills-devops.mdc
Original file line number Diff line number Diff line change
@@ -1,54 +1,23 @@
---
description: CURSOR-SKILLS rules for DevOps (Docker, Kubernetes, CI/CD, Terraform, IaC).
description: Kit guidance for DevOps (Docker, Kubernetes, CI/CD, Terraform): staging first, build once and promote, infrastructure as code.
globs: "**/Dockerfile,**/docker-compose*.{yml,yaml},**/.github/**/*.yml,**/.gitlab-ci.yml,**/*.yml,**/k8s/**/*,**/*.tf,**/*.tfvars"
alwaysApply: false
---

# CURSOR-SKILLS - DevOps
# DevOps (containers, CI/CD, infrastructure)

Source: [cursor-skills/devops](https://github.com/araguaci/cursor-skills/tree/main/devops)
## Flow

## CURSOR setup
- Staging first: nothing reaches production without passing staging (see `cursor-skills-git-workflow`). Build the artifact once and promote that same artifact.
- Write down the rollback path before the deploy, not during the incident.

- Docker, Kubernetes, GitLens, Remote Development, YAML, Terraform.
## Infrastructure

## Typical structure
- Infrastructure is code. No console edits; plan, review the plan, then apply.
- Terraform: remote state with locking, small modules, `fmt` and `validate` in CI, no real values committed in `*.tfvars`.
- Kubernetes: resource requests and limits, readiness and liveness probes, config in ConfigMap or Secret, never the `latest` tag.

```
project/
├── docker/ ├── k8s/ ├── terraform/ ├── .github/
└── .env
```
## Containers and CI

## Docker

- Dockerfile and docker-compose; multi-stage builds; layer cache; security (non-root user, minimal images).

## Kubernetes

- Pods, Services, Deployments; ConfigMaps and Secrets; resources and limits; health checks; naming conventions.

## CI/CD

- Pipelines (GitHub Actions, GitLab CI, etc.); stages (lint, test, build, deploy); triggers; notifications; rollback.
- When the project adopts Git staging → production flow: use `git staging` and `git prod`; never commit directly to `main`. See rule [cursor-skills-git-workflow.mdc](cursor-skills-git-workflow.mdc).

## DevOps spine: Git staging → prod

The two-step flow (staging → main) is the kit's operational memory. Reinforcements that keep work from leaking straight to production:

1. **Staging-first always.** Work and commits happen on a working branch or on `staging`, never with checkout on `main`.
2. **Leave `main` after `git prod`.** Promotion leaves checkout on `main`; when done, run `git checkout staging`. Staying on `main` is the most common way a commit escapes onto the production line.
3. **Prune legacy branches.** An old pre-prod branch (`homologacao`, `develop`) already migrated to `staging` should be removed (local and remotes) so it does not confuse the flow or history.
4. **Enforcement, not only convention.** Install the guards in `git-hooks/` (`pre-commit` and `pre-push`) that abort commit/push directly to `main`/`master`. Install notes in [git-hooks/README.md](git-hooks/README.md).
5. **Audit the `main` line.** `git log --first-parent --no-merges main` should return only the root commit. Any other non-merge there is a commit that was born directly on `main` (flow violation).

Details and prompts in [autogit/gitupdate.md](autogit/gitupdate.md); full rule in [cursor-skills-git-workflow.mdc](cursor-skills-git-workflow.mdc).

## IaC (Terraform)

- Modules; versioning; remote state; `terraform fmt`; document resources and variables.

## Best practices

- Logs, env vars, secrets out of code; infra tests when possible; deploy and troubleshooting docs.
- Docker: pinned base image, multi-stage build, non-root user, `.dockerignore`, no secrets in layers.
- CI: lint and unit tests first, slow suites after; cache dependencies; pin third-party actions to a commit SHA; give tokens the least scope that works.
35 changes: 12 additions & 23 deletions .cursor/rules/cursor-skills-general.mdc
Original file line number Diff line number Diff line change
@@ -1,27 +1,16 @@
---
description: CURSOR-SKILLS general rules (best practices, setup, quality). Source: cursor-skills.vercel.app
description: Kit baseline for code and repository hygiene: small diffs, tests with the change, no secrets, repo conventions first.
alwaysApply: true
---

# CURSOR-SKILLS - General Rules

Base: [CURSOR-SKILLS](https://github.com/araguaci/cursor-skills). Apply the repository's conventions in any environment.

## Principles

- **Setup**: use extensions, linting, and formatting suited to the environment; Git integration and debugging.
- **Structure**: follow the environment's conventions, consistent naming, separation of concerns.
- **Quality**: readable code, error handling, useful comments, tests.
- **Workflow**: Git, tests, CI/CD, documentation, and code review.
- **Documentation**: professional, inheritable standard (`docs-professional-standard`); project voice, no people, unrelated projects, or session context. Chat vs repo hygiene (`agent-output-hygiene`).

## Coding Guidelines

- **Think Before Coding:** do not assume; flag uncertainty; show tradeoffs; ask when a requirement is ambiguous.
- **Simplicity First:** the minimum code that solves the problem; no unrequested features; no abstraction for a single use; ask "would a senior find this overengineered?".
- **Surgical Changes:** touch only what is needed; do not "improve" adjacent code without being asked; keep the existing style; remove only what your change made orphaned.
- **Goal-Driven Execution:** define success criteria before implementing; iterate until the goal is verified.

## Git

Flow, branch guards, and Conventional Commits: `cursor-skills-git-workflow` (SoT `autogit/gitupdate.md`).
# General engineering baseline

- **Read before writing.** Match the naming, layout, formatter and linter the repo already uses before applying a preference of your own.
- **Smallest change that solves the task.** No drive-by refactors; a new dependency needs a reason in the PR.
- **Tests travel with the change.** A behavior change changes a test; a bug fix starts with a failing one.
- **No secrets in git.** Keys, tokens and `.env` files stay out of commits and logs (see `git-secrets-safety`).
- **Errors are handled or surfaced,** never swallowed. Log context, not payloads that hold personal data.
- **Names carry intent;** comments say why, not what.
- **Docs follow behavior.** README, CHANGELOG and ADRs change in the same PR as the behavior they describe.
- **Branching:** staging first, never `main` (see `cursor-skills-git-workflow`).
- Stack rules (`cursor-skills-<stack>`) load by file glob; follow them on top of this one.
16 changes: 0 additions & 16 deletions .cursor/rules/cursor-skills-groovy.mdc

This file was deleted.

45 changes: 10 additions & 35 deletions .cursor/rules/cursor-skills-integrations.mdc
Original file line number Diff line number Diff line change
@@ -1,41 +1,16 @@
---
description: CURSOR-SKILLS rules for integrations (webhooks, microservices, DBs, queues).
description: Kit guidance for integrations (webhooks, queues, third-party APIs): timeouts, idempotency, signed webhooks, one adapter per vendor.
globs: "**/integrations/**/*,**/webhooks/**/*,**/microservices/**/*"
alwaysApply: false
---

# CURSOR-SKILLS - Integrations
# Integrations (webhooks, queues, external services)

Source: [cursor-skills/integrations](https://github.com/araguaci/cursor-skills/tree/main/integrations)

## CURSOR setup

- Docker, Kubernetes, GitLens, Remote Development, Database Client, REST Client.

## Typical structure

```
project/
├── src/ ├── tests/ ├── configs/ ├── docker/ ├── k8s/
└── .env
```

## Principles

- Microservices; error handling and logging; secure communication; retries and idempotency when applicable.

## Webhooks

- Standardized events and payloads; validation (e.g. signature); retry; security.

## Microservices

- Consistent APIs; discovery; load balancing; health checks; communication tests.

## Database

- Connection pooling; transactions; indexes; prepared statements; avoid N+1; naming conventions.

## Communication

- HTTP, gRPC, or WebSocket as appropriate; error handling; queues (RabbitMQ, Kafka, etc.) when it makes sense.
- **Assume the other side fails.** Set a timeout on every call, retry a bounded number of times with backoff and jitter, and have a fallback.
- **Webhooks:** verify the signature, answer `2xx` fast and process asynchronously, dedupe by event id, tolerate replays and out-of-order delivery.
- **Consumers are idempotent.** Treat queues as at-least-once.
- **One adapter per vendor.** Validate inbound payloads at that boundary and map them to internal types; vendor types do not leak inward.
- **Version payloads** you emit; additive changes only within a version.
- **Credentials** live in the environment or a secret manager, one set per environment, rotated.
- **Trace across hops** with a correlation id. Log outcome and latency, not payloads with personal data.
- **Data stays with its owner.** No cross-service reads of another service's tables.
2 changes: 1 addition & 1 deletion .cursor/rules/cursor-skills-json.mdc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ globs: "**/*.json"
alwaysApply: false
---

# CURSOR-SKILLS - JSON
# JSON

Aligned with skill [.cursor/skills/community/json-data-config/SKILL.md](.cursor/skills/community/json-data-config/SKILL.md).

Expand Down
42 changes: 9 additions & 33 deletions .cursor/rules/cursor-skills-mobile.mdc
Original file line number Diff line number Diff line change
@@ -1,39 +1,15 @@
---
description: CURSOR-SKILLS rules for mobile (React Native, Flutter, Expo). Platform, performance, tests.
description: Kit guidance for mobile (React Native, Expo, Flutter): platform wrappers, performance, offline states, release hygiene.
globs: "**/*.dart,**/android/**/*,**/ios/**/*,**/App.tsx,**/app.json"
alwaysApply: false
---

# CURSOR-SKILLS - Mobile
# Mobile (React Native, Expo, Flutter)

Source: [cursor-skills/mobile](https://github.com/araguaci/cursor-skills/tree/main/mobile)

## CURSOR setup

- React Native Tools, Flutter, Dart, Expo Tools; on native projects: Android Studio / Xcode per stack.

## Typical structure

```
project/
├── src/ ├── tests/ ├── assets/ ├── android/ ├── ios/
└── .env
```

## By framework

- **React Native**: components, navigation, native APIs; ESLint; performance (lists, memo, lazy).
- **Flutter**: widgets, state management; `dart.flutterSdkPath` if needed; Flutter tests.
- **Expo**: expo-cli / expo-dev-client; Expo APIs and components; `expo.toolsPath` if needed.

## Platform

- iOS/Android differences; platform-specific code when needed; responsive design; each OS guidelines.

## Performance and quality

- Optimize images and assets; rendering and memory; Prettier, ESLint; tests (unit, integration, E2E); coverage ≥ 80%.

## Security

- Validate inputs; auth; sensitive data; HTTPS; OWASP mobile.
- **One toolkit per app.** Do not mix state or navigation patterns inside the same project.
- **Isolate platform differences** behind small wrappers and run both iOS and Android before a change reaches staging.
- **Every screen has loading, empty and error states.** Assume a slow or absent network; cache and retry.
- **Performance:** virtualized lists, avoid needless rebuilds and re-renders, measure on a low-end device before optimizing.
- **Secrets stay out of the bundle.** Tokens go in secure storage. Ask for a permission in context and work when it is denied.
- **Release:** CI bumps version and build number; over-the-air updates only for JavaScript-level changes.
- **Tests:** unit tests for logic, component or widget tests for screens, one E2E smoke test on the critical path.
2 changes: 1 addition & 1 deletion .cursor/rules/cursor-skills-n8n.mdc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ globs: "**/n8n/**/*,**/*workflow*.json,**/workflows/**/*.json"
alwaysApply: false
---

# CURSOR-SKILLS - n8n
# n8n

Aligned with skill [.cursor/skills/community/n8n-workflows/SKILL.md](.cursor/skills/community/n8n-workflows/SKILL.md).

Expand Down
Loading