everything-gemini 1.0.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/release.yml +49 -0
- package/CHANGELOG.md +81 -0
- package/CONTRIBUTING.md +2 -2
- package/README.md +55 -25
- package/assets/banner.jpg +0 -0
- package/bin/everything-gemini +198 -7
- package/docs/LAUNCH_KIT.md +156 -0
- package/docs/architecture/progressive-disclosure.md +1 -1
- package/docs/index.html +555 -0
- package/docs/workflows/slash-commands.md +3 -3
- package/examples/python-sdk/README.md +36 -0
- package/examples/python-sdk/orchestrate_subagents.py +59 -0
- package/hooks/auto-lint-formatter/scripts/auto-format.sh +1 -1
- package/hooks/ephemeral-context/scripts/inject-context.sh +2 -2
- package/hooks/goal-verifier/scripts/verify-goal.sh +2 -2
- package/hooks/safety-shield/scripts/safety-gate.sh +3 -3
- package/package.json +2 -1
- package/plugins/core/plugin.json +1 -1
- package/plugins/python-ai/plugin.json +1 -1
- package/plugins/security-shield/plugin.json +1 -1
- package/plugins/web-fullstack/plugin.json +1 -1
- package/rules/common/AGENTS.md +1 -1
- package/rules/common/GEMINI.md +1 -1
- package/skills/ai-first-engineering/SKILL.md +68 -0
- package/skills/cloudflare-workers/SKILL.md +72 -0
- package/skills/gemini-function-calling/SKILL.md +90 -0
- package/skills/gemini-grounding/SKILL.md +37 -0
- package/skills/github-ops/SKILL.md +102 -0
- package/skills/kubernetes-operator/SKILL.md +82 -0
- package/skills/rag-architect/SKILL.md +60 -0
- package/skills/stripe-integration/SKILL.md +65 -0
- package/skills/supabase-architect/SKILL.md +53 -0
- package/templates/full-power/AGENTS.md +12 -0
- package/templates/full-power/GEMINI.md +12 -0
- package/templates/full-power/hooks.json +56 -0
- package/templates/full-power/mcp_config.json +15 -0
- package/templates/recommended/AGENTS.md +11 -0
- package/templates/recommended/GEMINI.md +11 -0
- package/templates/recommended/hooks.json +43 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: stripe-integration
|
|
3
|
+
description: >-
|
|
4
|
+
Use this skill when implementing Stripe checkout sessions, managing subscription billing lifecycles, verifying webhook signatures, or configuring customer billing portals.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Stripe Payments & Subscription Architecture
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
This skill guides the implementation of PCI-compliant payment flows, webhook signature verification, idempotent charge processing, and customer portal session generation using the official Stripe SDK.
|
|
11
|
+
|
|
12
|
+
## Procedural Workflow
|
|
13
|
+
|
|
14
|
+
### 1. Robust Webhook Signature Verification
|
|
15
|
+
Never process webhooks without verifying the cryptographic signature against your endpoint secret:
|
|
16
|
+
```typescript
|
|
17
|
+
import Stripe from "stripe";
|
|
18
|
+
|
|
19
|
+
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY!, {
|
|
20
|
+
apiVersion: "2024-06-20",
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
export async function handleStripeWebhook(rawBody: string | Buffer, signature: string) {
|
|
24
|
+
let event: Stripe.Event;
|
|
25
|
+
try {
|
|
26
|
+
event = stripe.webhooks.constructEvent(
|
|
27
|
+
rawBody,
|
|
28
|
+
signature,
|
|
29
|
+
process.env.STRIPE_WEBHOOK_SECRET!
|
|
30
|
+
);
|
|
31
|
+
} catch (err: any) {
|
|
32
|
+
throw new Error(`Webhook signature verification failed: ${err.message}`);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// Handle idempotent events using database transaction
|
|
36
|
+
switch (event.type) {
|
|
37
|
+
case "checkout.session.completed":
|
|
38
|
+
await handleCheckoutCompleted(event.data.object as Stripe.Checkout.Session);
|
|
39
|
+
break;
|
|
40
|
+
case "customer.subscription.updated":
|
|
41
|
+
case "customer.subscription.deleted":
|
|
42
|
+
await syncSubscriptionStatus(event.data.object as Stripe.Subscription);
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### 2. Idempotency & Concurrency Safety
|
|
49
|
+
- Always store `event.id` in an `idempotency_keys` table or set a unique constraint. If Stripe retries a webhook, discard duplicates immediately.
|
|
50
|
+
- Use `client_reference_id` or `metadata` to link Stripe customers with your internal user IDs.
|
|
51
|
+
|
|
52
|
+
### 3. Customer Billing Portal
|
|
53
|
+
Generate pre-authenticated portal sessions so users can update payment methods and invoices self-service without custom frontend form logic:
|
|
54
|
+
```typescript
|
|
55
|
+
const portalSession = await stripe.billingPortal.sessions.create({
|
|
56
|
+
customer: stripeCustomerId,
|
|
57
|
+
return_url: `${process.env.NEXT_PUBLIC_APP_URL}/dashboard/billing`,
|
|
58
|
+
});
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Verification Checklist
|
|
62
|
+
- [ ] Raw body buffer preserved for webhook cryptographic verification
|
|
63
|
+
- [ ] Idempotency key checked before applying database mutations
|
|
64
|
+
- [ ] Webhook handler returns HTTP 200 promptly before long-running async tasks
|
|
65
|
+
- [ ] Stripe secret keys read strictly from environment variables
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: supabase-architect
|
|
3
|
+
description: >-
|
|
4
|
+
Use this skill when designing Supabase database schemas, writing Row Level Security (RLS) policies, setting up pgvector AI embeddings, or configuring Supabase Edge Functions.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Supabase Architecture & Security Playbook
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
Supabase provides a powerful managed backend powered by PostgreSQL. This skill guides the agent in crafting bulletproof Row Level Security (RLS) policies, configuring pgvector for semantic search and AI embeddings, and deploying performant Supabase Edge Functions.
|
|
11
|
+
|
|
12
|
+
## Procedural Workflow
|
|
13
|
+
|
|
14
|
+
### 1. Row Level Security (RLS) Defense-in-Depth
|
|
15
|
+
Never leave a table with RLS disabled in production:
|
|
16
|
+
```sql
|
|
17
|
+
-- 1. Always enable RLS on newly created tables
|
|
18
|
+
ALTER TABLE documents ENABLE ROW LEVEL SECURITY;
|
|
19
|
+
|
|
20
|
+
-- 2. Enforce strict tenant isolation or user ownership
|
|
21
|
+
CREATE POLICY "Users can only read their own documents"
|
|
22
|
+
ON documents
|
|
23
|
+
FOR SELECT
|
|
24
|
+
USING (auth.uid() = user_id);
|
|
25
|
+
|
|
26
|
+
CREATE POLICY "Users can only insert their own documents"
|
|
27
|
+
ON documents
|
|
28
|
+
FOR INSERT
|
|
29
|
+
WITH CHECK (auth.uid() = user_id);
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### 2. Semantic Search & Vector Embeddings (`pgvector`)
|
|
33
|
+
When storing AI embeddings in PostgreSQL:
|
|
34
|
+
1. Enable extension: `CREATE EXTENSION IF NOT EXISTS vector;`
|
|
35
|
+
2. Create vector column matching model dimensions (e.g., 768 or 1536):
|
|
36
|
+
```sql
|
|
37
|
+
ALTER TABLE documents ADD COLUMN embedding vector(768);
|
|
38
|
+
```
|
|
39
|
+
3. Create an HNSW index for fast similarity lookups:
|
|
40
|
+
```sql
|
|
41
|
+
CREATE INDEX ON documents USING hnsw (embedding vector_cosine_ops);
|
|
42
|
+
```
|
|
43
|
+
4. Define match RPC functions with inner product or cosine distance queries.
|
|
44
|
+
|
|
45
|
+
### 3. Realtime Channels & Subscriptions
|
|
46
|
+
- Filter broadcasts server-side using Postgres row-level filters (`eq`, `in`) to prevent client-side data leaks.
|
|
47
|
+
- Ensure sensitive columns are omitted or masked in realtime publication sets.
|
|
48
|
+
|
|
49
|
+
## Verification Checklist
|
|
50
|
+
- [ ] RLS explicitly enabled on every table
|
|
51
|
+
- [ ] RLS policies tested against unauthenticated and cross-tenant tokens
|
|
52
|
+
- [ ] Vector index created with appropriate similarity operator (`vector_cosine_ops`)
|
|
53
|
+
- [ ] Edge functions handle CORS headers and verify JWT signatures
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Antigravity Enterprise Standards (Full-Power Profile)
|
|
2
|
+
|
|
3
|
+
## 1. Prime Directives
|
|
4
|
+
1. **Zero Hallucination & Evidence-First**: Never speculate on APIs, schemas, or dependencies. Always view code before proposing edits.
|
|
5
|
+
2. **Subagent Delegation Discipline**: Defer heavy multi-file exploration to `planner`, adversarial audits to `security-auditor`, and UI verification to `browser-qa`.
|
|
6
|
+
3. **Progressive Disclosure**: Keep prompt context lean (<3,500 tokens). Pull skills and schemas into context strictly on-demand.
|
|
7
|
+
4. **Deterministic Verification Loop**: Code changes require passing automated tests (`npm test` / pytest) before concluding.
|
|
8
|
+
5. **Continuous Learning**: When errors or user corrections occur, record the insight using `/learn` into permanent Knowledge Items.
|
|
9
|
+
|
|
10
|
+
## 2. Security & Operational Policy
|
|
11
|
+
- Strict zero-trust command execution: All raw shell commands must pass GeminiShield gating.
|
|
12
|
+
- Webhooks, tokens, and credentials must be read from environment variables with no hardcoding.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Antigravity Enterprise Standards (Full-Power Profile)
|
|
2
|
+
|
|
3
|
+
## 1. Prime Directives
|
|
4
|
+
1. **Zero Hallucination & Evidence-First**: Never speculate on APIs, schemas, or dependencies. Always view code before proposing edits.
|
|
5
|
+
2. **Subagent Delegation Discipline**: Defer heavy multi-file exploration to `planner`, adversarial audits to `security-auditor`, and UI verification to `browser-qa`.
|
|
6
|
+
3. **Progressive Disclosure**: Keep prompt context lean (<3,500 tokens). Pull skills and schemas into context strictly on-demand.
|
|
7
|
+
4. **Deterministic Verification Loop**: Code changes require passing automated tests (`npm test` / pytest) before concluding.
|
|
8
|
+
5. **Continuous Learning**: When errors or user corrections occur, record the insight using `/learn` into permanent Knowledge Items.
|
|
9
|
+
|
|
10
|
+
## 2. Security & Operational Policy
|
|
11
|
+
- Strict zero-trust command execution: All raw shell commands must pass GeminiShield gating.
|
|
12
|
+
- Webhooks, tokens, and credentials must be read from environment variables with no hardcoding.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"gemini-shield": {
|
|
3
|
+
"PreToolUse": [
|
|
4
|
+
{
|
|
5
|
+
"matcher": "run_command",
|
|
6
|
+
"hooks": [
|
|
7
|
+
{
|
|
8
|
+
"type": "command",
|
|
9
|
+
"command": "bash ./hooks/gemini-shield/scripts/shield-gate.sh",
|
|
10
|
+
"timeout": 15
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"auto-lint": {
|
|
17
|
+
"PostToolUse": [
|
|
18
|
+
{
|
|
19
|
+
"matcher": "replace_file_content|write_to_file",
|
|
20
|
+
"hooks": [
|
|
21
|
+
{
|
|
22
|
+
"type": "command",
|
|
23
|
+
"command": "bash ./hooks/auto-lint-formatter/scripts/auto-format.sh",
|
|
24
|
+
"timeout": 10
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"goal-verifier": {
|
|
31
|
+
"Stop": [
|
|
32
|
+
{
|
|
33
|
+
"hooks": [
|
|
34
|
+
{
|
|
35
|
+
"type": "command",
|
|
36
|
+
"command": "bash ./hooks/goal-verifier/scripts/verify-goal.sh",
|
|
37
|
+
"timeout": 15
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"learned-instincts": {
|
|
44
|
+
"PostInvocation": [
|
|
45
|
+
{
|
|
46
|
+
"hooks": [
|
|
47
|
+
{
|
|
48
|
+
"type": "command",
|
|
49
|
+
"command": "bash ./hooks/learned-instincts/scripts/save-instinct.sh",
|
|
50
|
+
"timeout": 10
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"mcpServers": {
|
|
3
|
+
"github": {
|
|
4
|
+
"command": "npx",
|
|
5
|
+
"args": ["-y", "@modelcontextprotocol/server-github"],
|
|
6
|
+
"env": {
|
|
7
|
+
"GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_TOKEN}"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
"postgres": {
|
|
11
|
+
"command": "npx",
|
|
12
|
+
"args": ["-y", "@modelcontextprotocol/server-postgres", "${DATABASE_URL}"]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Antigravity Developer Standards (Recommended)
|
|
2
|
+
|
|
3
|
+
## 1. Prime Directives
|
|
4
|
+
1. **Zero Hallucination**: Always inspect file contents, exports, and signatures with `view_file` or `grep_search` before proposing or applying modifications.
|
|
5
|
+
2. **Minimal Surgical Diffs**: Preserve all existing comments, docstrings, and formatting unrelated to your task.
|
|
6
|
+
3. **Automated Verification Loop**: Every modification must be followed by automated verification (running unit tests, linters, or typecheckers).
|
|
7
|
+
4. **Clickable Markdown Navigation**: Always format file paths and symbols as clickable links using the `file://` scheme: `[filename](file:///absolute/path/to/file)`.
|
|
8
|
+
|
|
9
|
+
## 2. Terminal & Tool Safety
|
|
10
|
+
- Never run unchecked destructive operations (`rm -rf *`, `git reset --hard`, `DROP TABLE`).
|
|
11
|
+
- Run persistent processes and background servers with `IsDaemon: true`.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Antigravity Developer Standards (Recommended)
|
|
2
|
+
|
|
3
|
+
## 1. Prime Directives
|
|
4
|
+
1. **Zero Hallucination**: Always inspect file contents, exports, and signatures with `view_file` or `grep_search` before proposing or applying modifications.
|
|
5
|
+
2. **Minimal Surgical Diffs**: Preserve all existing comments, docstrings, and formatting unrelated to your task.
|
|
6
|
+
3. **Automated Verification Loop**: Every modification must be followed by automated verification (running unit tests, linters, or typecheckers).
|
|
7
|
+
4. **Clickable Markdown Navigation**: Always format file paths and symbols as clickable links using the `file://` scheme: `[filename](file:///absolute/path/to/file)`.
|
|
8
|
+
|
|
9
|
+
## 2. Terminal & Tool Safety
|
|
10
|
+
- Never run unchecked destructive operations (`rm -rf *`, `git reset --hard`, `DROP TABLE`).
|
|
11
|
+
- Run persistent processes and background servers with `IsDaemon: true`.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"safety-shield": {
|
|
3
|
+
"PreToolUse": [
|
|
4
|
+
{
|
|
5
|
+
"matcher": "run_command",
|
|
6
|
+
"hooks": [
|
|
7
|
+
{
|
|
8
|
+
"type": "command",
|
|
9
|
+
"command": "bash ./hooks/safety-shield/scripts/safety-gate.sh",
|
|
10
|
+
"timeout": 15
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"auto-lint": {
|
|
17
|
+
"PostToolUse": [
|
|
18
|
+
{
|
|
19
|
+
"matcher": "replace_file_content|write_to_file",
|
|
20
|
+
"hooks": [
|
|
21
|
+
{
|
|
22
|
+
"type": "command",
|
|
23
|
+
"command": "bash ./hooks/auto-lint-formatter/scripts/auto-format.sh",
|
|
24
|
+
"timeout": 10
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"goal-verifier": {
|
|
31
|
+
"Stop": [
|
|
32
|
+
{
|
|
33
|
+
"hooks": [
|
|
34
|
+
{
|
|
35
|
+
"type": "command",
|
|
36
|
+
"command": "bash ./hooks/goal-verifier/scripts/verify-goal.sh",
|
|
37
|
+
"timeout": 15
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
}
|