everything-gemini 1.0.0 → 1.0.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 +42 -0
- package/CHANGELOG.md +45 -0
- package/CONTRIBUTING.md +2 -2
- package/README.md +29 -23
- package/bin/everything-gemini +5 -5
- package/docs/architecture/progressive-disclosure.md +1 -1
- package/docs/workflows/slash-commands.md +3 -3
- 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 +1 -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/cloudflare-workers/SKILL.md +72 -0
- package/skills/gemini-grounding/SKILL.md +37 -0
- package/skills/kubernetes-operator/SKILL.md +82 -0
- package/skills/stripe-integration/SKILL.md +65 -0
- package/skills/supabase-architect/SKILL.md +53 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
name: Release & Publish
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- 'v*'
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build-and-publish:
|
|
10
|
+
name: Build, Test & Publish to NPM
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
permissions:
|
|
13
|
+
contents: write
|
|
14
|
+
id-token: write
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- name: Checkout Repository
|
|
18
|
+
uses: actions/checkout@v4
|
|
19
|
+
|
|
20
|
+
- name: Setup Node.js
|
|
21
|
+
uses: actions/setup-node@v4
|
|
22
|
+
with:
|
|
23
|
+
node-version: '20'
|
|
24
|
+
registry-url: 'https://registry.npmjs.org'
|
|
25
|
+
|
|
26
|
+
- name: Make Scripts Executable
|
|
27
|
+
run: |
|
|
28
|
+
chmod +x scripts/validate.sh scripts/install.sh bin/everything-gemini
|
|
29
|
+
find hooks/ -type f -name "*.sh" -exec chmod +x {} +
|
|
30
|
+
find skills/ -type f -name "*.sh" -exec chmod +x {} +
|
|
31
|
+
|
|
32
|
+
- name: Run Test Suite
|
|
33
|
+
run: npm test
|
|
34
|
+
|
|
35
|
+
- name: Create GitHub Release
|
|
36
|
+
uses: softprops/action-gh-release@v2
|
|
37
|
+
with:
|
|
38
|
+
generate_release_notes: true
|
|
39
|
+
files: |
|
|
40
|
+
LICENSE
|
|
41
|
+
README.md
|
|
42
|
+
CHANGELOG.md
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# 📜 Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to **Everything Gemini (`everything-gemini`)** will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## [1.0.1] - 2026-10-15
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- **`gemini-grounding` Skill**: Native Google Search Grounding and dynamic fact-verification playbook.
|
|
13
|
+
- **Automated Release Workflow**: `.github/workflows/release.yml` for automated GitHub releases and npm publishing.
|
|
14
|
+
- **NPM Package Verification**: Published to npm registry as `everything-gemini`.
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
- Normalized all documentation, plugins, and lifecycle hook manifests to `everything-gemini`.
|
|
18
|
+
- Added instant `npx everything-gemini install` installation instructions to README.
|
|
19
|
+
- Credited Everything Claude Code (ECC) by Affan Mustafa in dedicated `Acknowledgements & Prior Art` section.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## [1.0.0] - 2026-10-15
|
|
24
|
+
|
|
25
|
+
### Initial Public Launch
|
|
26
|
+
- **18 Progressive Disclosure Skills**:
|
|
27
|
+
- `gemini-multimodal`: Visual mockups, diagram extraction, and automated UI regression testing.
|
|
28
|
+
- `context-caching`: 1M-2M token context optimization with static prefix caching.
|
|
29
|
+
- `subagent-handoff`: Multi-agent scoped delegation and synthesis.
|
|
30
|
+
- `api-craftsman`, `database-architect`, `devops-pipeline`, `root-cause-debugger`, `tdd-workflow`, `browser-qa-tester`, `architecture-designer`, `repo-onboarding`, `git-craftsman`, `performance-profiler`, `fullstack-nextjs`, `security-audit`, `continuous-learning`.
|
|
31
|
+
- **6 Scoped Subagents (`agents/`)**:
|
|
32
|
+
- `planner.md`, `code-reviewer.md`, `build-repair.md`, `browser-qa.md`, `security-auditor.md`, `architect.md`.
|
|
33
|
+
- **GeminiShield Safety Gate & Lifecycle Hooks**:
|
|
34
|
+
- `PreToolUse`: Catastrophic command blocker (`rm -rf`, `DROP TABLE`, `git push --force`).
|
|
35
|
+
- `PostToolUse`: Auto-lint formatter.
|
|
36
|
+
- `Stop`: Goal-verifier preventing premature agent completion on broken tests.
|
|
37
|
+
- `PreInvocation`: Ephemeral context injector.
|
|
38
|
+
- **4 Modular Plugins**:
|
|
39
|
+
- `plugins/core`, `plugins/web-fullstack`, `plugins/python-ai`, `plugins/security-shield`.
|
|
40
|
+
- **Zero-Dependency CLI (`bin/everything-gemini`)**:
|
|
41
|
+
- `doctor`, `install`, `list`, `new-skill`, `new-agent`, `validate`.
|
|
42
|
+
- **Comprehensive Documentation**:
|
|
43
|
+
- Architectural comparison breakdown against Everything Claude Code (ECC) (`docs/ecc-vs-everything-gemini.md`).
|
|
44
|
+
- 4 Antigravity Surfaces guide (Desktop 2.0, IDE, CLI, Python SDK).
|
|
45
|
+
- Progressive disclosure specifications and Cortex event loop diagrams.
|
package/CONTRIBUTING.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Contributing to Everything
|
|
1
|
+
# Contributing to Everything Gemini (`everything-gemini`)
|
|
2
2
|
|
|
3
|
-
Thank you for your interest in contributing to **Everything
|
|
3
|
+
Thank you for your interest in contributing to **Everything Gemini (`everything-gemini`)**! Our goal is to build the highest-quality, most reliable, and most token-efficient agent harness and customization ecosystem for Google Antigravity and Gemini.
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
[](LICENSE)
|
|
6
6
|
[](https://antigravity.google)
|
|
7
|
-
[](package.json)
|
|
8
8
|
[](https://github.com/salmandev/everything-gemini)
|
|
9
9
|
[](CONTRIBUTING.md)
|
|
10
10
|
|
|
@@ -38,9 +38,15 @@ Out of the box, Antigravity is a formidable pair programmer. But without structu
|
|
|
38
38
|
|
|
39
39
|
## 🚀 Quickstart
|
|
40
40
|
|
|
41
|
-
### 1.
|
|
41
|
+
### 1. Instant Installation via npx (Zero Setup)
|
|
42
42
|
|
|
43
|
-
Run this in
|
|
43
|
+
Run this directly in any project directory or terminal:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
npx everything-gemini install
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### 2. One-Line Interactive Installer
|
|
44
50
|
|
|
45
51
|
```bash
|
|
46
52
|
# macOS / Linux
|
|
@@ -52,18 +58,17 @@ curl -fsSL https://raw.githubusercontent.com/salmandev/everything-gemini/main/sc
|
|
|
52
58
|
irm https://raw.githubusercontent.com/salmandev/everything-gemini/main/scripts/install.ps1 | iex
|
|
53
59
|
```
|
|
54
60
|
|
|
55
|
-
###
|
|
56
|
-
|
|
61
|
+
### 3. Via Repository Clone
|
|
57
62
|
```bash
|
|
58
63
|
# Clone the repository
|
|
59
64
|
git clone https://github.com/salmandev/everything-gemini.git
|
|
60
65
|
cd everything-gemini
|
|
61
66
|
|
|
62
|
-
# Run the
|
|
67
|
+
# Run the Everything Gemini CLI
|
|
63
68
|
./bin/everything-gemini install --profile developer
|
|
64
69
|
```
|
|
65
70
|
|
|
66
|
-
###
|
|
71
|
+
### 4. Installation Profiles
|
|
67
72
|
|
|
68
73
|
| Profile | Target Audience | What Gets Installed |
|
|
69
74
|
| :--- | :--- | :--- |
|
|
@@ -75,7 +80,7 @@ cd everything-gemini
|
|
|
75
80
|
|
|
76
81
|
## 🏗️ Architecture & Internals
|
|
77
82
|
|
|
78
|
-
`
|
|
83
|
+
`everything-gemini` is engineered specifically around Google Antigravity's internal execution engine:
|
|
79
84
|
|
|
80
85
|
```mermaid
|
|
81
86
|
flowchart TB
|
|
@@ -91,7 +96,7 @@ flowchart TB
|
|
|
91
96
|
Workspace[".agents/ (Workspace Root)"]
|
|
92
97
|
end
|
|
93
98
|
|
|
94
|
-
subgraph
|
|
99
|
+
subgraph GeminiHarness["3. Everything Gemini Harness & Engine"]
|
|
95
100
|
direction TB
|
|
96
101
|
HookEngine["Lifecycle Hooks Engine\n(PreToolUse | PostToolUse | PreInvocation | Stop)"]
|
|
97
102
|
Progressive["Progressive Disclosure Router\n(Injects only metadata until model decides to view)"]
|
|
@@ -105,8 +110,8 @@ flowchart TB
|
|
|
105
110
|
end
|
|
106
111
|
|
|
107
112
|
AntigravitySurfaces --> CustomizationRoots
|
|
108
|
-
CustomizationRoots -->
|
|
109
|
-
|
|
113
|
+
CustomizationRoots --> GeminiHarness
|
|
114
|
+
GeminiHarness --> Capabilities
|
|
110
115
|
```
|
|
111
116
|
|
|
112
117
|
### Key Differences: ECC vs. Everything Gemini
|
|
@@ -136,7 +141,7 @@ everything-gemini/
|
|
|
136
141
|
├── agents/ # Scoped subagent fleet (Planner, Reviewer, Architect, etc.)
|
|
137
142
|
├── scripts/ # Automated installers and harness validators
|
|
138
143
|
├── plugins/ # Reusable modular plugins (web-fullstack, python-ai, security)
|
|
139
|
-
├── skills/ #
|
|
144
|
+
├── skills/ # 21+ Progressive disclosure skills
|
|
140
145
|
├── rules/ # Contextual guidelines & standards
|
|
141
146
|
├── hooks/ # Event-driven lifecycle hooks (GeminiShield, Auto-lint)
|
|
142
147
|
├── mcp/ # Production-ready MCP server blueprints
|
|
@@ -178,11 +183,12 @@ Skills in Antigravity are lazy-loaded runbooks. Only their YAML frontmatter (`na
|
|
|
178
183
|
- **[`git-craftsman`](skills/git-craftsman/SKILL.md)**: Enforces conventional commits, atomic diffs, and clean PR descriptions.
|
|
179
184
|
- **[`security-audit`](skills/security-audit/SKILL.md)**: Scans for credentials in commit history and audits dependency risks.
|
|
180
185
|
- **[`performance-profiler`](skills/performance-profiler/SKILL.md)**: Identifies CPU/memory bottlenecks, analyzes database queries, and critical paths.
|
|
181
|
-
- **[`
|
|
182
|
-
- **[`
|
|
183
|
-
- **[`
|
|
184
|
-
- **[`
|
|
185
|
-
- **[`
|
|
186
|
+
- **[`gemini-grounding`](skills/gemini-grounding/SKILL.md)**: Real-time Google Search grounding, live documentation retrieval, and fact-checking.
|
|
187
|
+
- **[`supabase-architect`](skills/supabase-architect/SKILL.md)**: Row Level Security (RLS) policies, pgvector embeddings, and edge function workflows.
|
|
188
|
+
- **[`cloudflare-workers`](skills/cloudflare-workers/SKILL.md)**: Serverless edge functions, Wrangler v3, D1 SQL, and KV low-latency storage.
|
|
189
|
+
- **[`kubernetes-operator`](skills/kubernetes-operator/SKILL.md)**: Production k8s manifests, HPA autoscaling, zero-downtime rolling updates, and health probes.
|
|
190
|
+
- **[`stripe-integration`](skills/stripe-integration/SKILL.md)**: Webhook signature verification, idempotent payments, and customer portal session flows.
|
|
191
|
+
- **[`continuous-learning`](skills/continuous-learning/SKILL.md)**: Codifies corrections and developer feedback into enduring Knowledge Items.
|
|
186
192
|
|
|
187
193
|
### 2. Lifecycle Hooks (`hooks/`)
|
|
188
194
|
Hooks run shell scripts at critical lifecycle events with typed JSON contracts on `stdin`/`stdout`:
|
|
@@ -203,7 +209,7 @@ Antigravity automatically discovers rules by walking up from the current file's
|
|
|
203
209
|
|
|
204
210
|
## 🖥️ The 4 Antigravity Surfaces
|
|
205
211
|
|
|
206
|
-
Antigravity operates across four interconnected surfaces. `
|
|
212
|
+
Antigravity operates across four interconnected surfaces. `everything-gemini` supports all of them seamlessly:
|
|
207
213
|
|
|
208
214
|
```
|
|
209
215
|
+-----------------------------------------------------------------------------------+
|
|
@@ -232,9 +238,9 @@ Antigravity operates across four interconnected surfaces. `eagy` supports all of
|
|
|
232
238
|
|
|
233
239
|
Antigravity provides built-in slash commands in chat that activate specialized cognitive modes:
|
|
234
240
|
|
|
235
|
-
| Command | Purpose | How
|
|
241
|
+
| Command | Purpose | How Everything Gemini Enhances It |
|
|
236
242
|
| :--- | :--- | :--- |
|
|
237
|
-
| **`/goal <task>`** | Long-running autonomous mode | Pairs with
|
|
243
|
+
| **`/goal <task>`** | Long-running autonomous mode | Pairs with Everything Gemini's **Goal Verifier Hook** to prevent premature termination until test suites pass. |
|
|
238
244
|
| **`/plan <task>`** | Step-by-step implementation blueprint | Enforces architectural review, risk assessment, and mermaid diagrams before code edits. |
|
|
239
245
|
| **`/grill-me`** | Interactive design interview | Asks hard architectural and trade-off questions to resolve ambiguities before implementing. |
|
|
240
246
|
| **`/learn`** | Persist feedback across sessions | Automatically indexes insights into a permanent Knowledge Item (`<appDataDir>/knowledge`). |
|
|
@@ -244,13 +250,13 @@ Antigravity provides built-in slash commands in chat that activate specialized c
|
|
|
244
250
|
|
|
245
251
|
## 📊 Token Efficiency & Benchmark
|
|
246
252
|
|
|
247
|
-
Traditional agent harnesses dump dozens of prompt files into the system prompt on every single turn. Antigravity's **Progressive Disclosure** paired with
|
|
253
|
+
Traditional agent harnesses dump dozens of prompt files into the system prompt on every single turn. Antigravity's **Progressive Disclosure** paired with Everything Gemini avoids this:
|
|
248
254
|
|
|
249
255
|
```
|
|
250
256
|
[Traditional Setup]
|
|
251
257
|
System Prompt: Base Instructions + All 25 Skills (Full Text) + All Rules = ~45,000 Tokens / turn
|
|
252
258
|
|
|
253
|
-
[
|
|
259
|
+
[Everything Gemini on Antigravity]
|
|
254
260
|
System Prompt: Base Instructions + 25 Skill Summaries (YAML) + Directory Rules = ~3,200 Tokens / turn
|
|
255
261
|
Skill Body: Loaded on-demand ONLY when invoked = ~1,500 Tokens (one-time)
|
|
256
262
|
Savings: > 85% Token Reduction & 3x Faster First-Token Latency!
|
|
@@ -260,7 +266,7 @@ Savings: > 85% Token Reduction & 3x Faster First-Token Latency!
|
|
|
260
266
|
|
|
261
267
|
## 🛠️ Usage & CLI Reference
|
|
262
268
|
|
|
263
|
-
The zero-dependency `
|
|
269
|
+
The zero-dependency `everything-gemini` CLI manages your configurations effortlessly:
|
|
264
270
|
|
|
265
271
|
```bash
|
|
266
272
|
# Verify your installation and check for conflicts
|
package/bin/everything-gemini
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Everything
|
|
5
|
-
* Zero-dependency harness manager for Google Antigravity
|
|
4
|
+
* Everything Gemini (everything-gemini) CLI
|
|
5
|
+
* Zero-dependency harness manager for Google Antigravity & Gemini
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
const fs = require('fs');
|
|
@@ -27,7 +27,7 @@ const GRAY = '\x1b[90m';
|
|
|
27
27
|
|
|
28
28
|
function printBanner() {
|
|
29
29
|
console.log(`
|
|
30
|
-
${CYAN}${BOLD}🪐 Everything Gemini (${GREEN}everything-gemini${CYAN}) v1.0.
|
|
30
|
+
${CYAN}${BOLD}🪐 Everything Gemini (${GREEN}everything-gemini${CYAN}) v1.0.1${RESET}
|
|
31
31
|
${GRAY}The open-source agent harness & multi-agent orchestrator for Google Gemini & Antigravity${RESET}
|
|
32
32
|
`);
|
|
33
33
|
}
|
|
@@ -38,7 +38,7 @@ function printHelp() {
|
|
|
38
38
|
console.log(` everything-gemini <command> [options]\n`);
|
|
39
39
|
console.log(`${BOLD}COMMANDS:${RESET}`);
|
|
40
40
|
console.log(` ${GREEN}doctor${RESET} Inspect system, AGY surfaces, and configuration health`);
|
|
41
|
-
console.log(` ${GREEN}install${RESET} [options] Install
|
|
41
|
+
console.log(` ${GREEN}install${RESET} [options] Install everything-gemini profiles into workspace or globally`);
|
|
42
42
|
console.log(` ${GREEN}list${RESET} Show all available skills, rules, hooks, and plugins`);
|
|
43
43
|
console.log(` ${GREEN}new-skill${RESET} <name> Scaffold a new progressive-disclosure skill`);
|
|
44
44
|
console.log(` ${GREEN}new-agent${RESET} <name> Scaffold a new scoped subagent specification`);
|
|
@@ -217,7 +217,7 @@ function installProfile(profile = 'developer', isGlobal = false, customTarget =
|
|
|
217
217
|
? path.resolve(customTarget)
|
|
218
218
|
: (isGlobal ? GLOBAL_CONFIG_DIR : AGENTS_DIR);
|
|
219
219
|
|
|
220
|
-
console.log(`${BOLD}🚀 Installing
|
|
220
|
+
console.log(`${BOLD}🚀 Installing everything-gemini Profile: [${GREEN}${profile}${RESET}${BOLD}]${RESET}`);
|
|
221
221
|
console.log(`Target Directory: ${CYAN}${targetDir}${RESET}\n`);
|
|
222
222
|
|
|
223
223
|
if (!fs.existsSync(targetDir)) {
|
|
@@ -22,7 +22,7 @@ Instead of injecting entire skill files (`SKILL.md`) into the system prompt:
|
|
|
22
22
|
| Harness Strategy | Baseline Prompt Overhead |
|
|
23
23
|
+------------------------------------+--------------------------+
|
|
24
24
|
| Monolithic Prompts (e.g. naive) | ~48,000 tokens / turn |
|
|
25
|
-
|
|
|
25
|
+
| Everything Gemini Progressive Disc. | ~3,200 tokens / turn |
|
|
26
26
|
+------------------------------------+--------------------------+
|
|
27
27
|
| Net Token Savings | 85% - 93% |
|
|
28
28
|
+------------------------------------+--------------------------+
|
|
@@ -8,11 +8,11 @@ Slash commands in Antigravity chat trigger specialized cognitive modes, prompt r
|
|
|
8
8
|
|
|
9
9
|
### `/goal <prompt>`
|
|
10
10
|
- **Behavior**: Enters autonomous goal-seeking mode. The agent continues executing multi-step actions until the objective is fully verified.
|
|
11
|
-
- **
|
|
11
|
+
- **everything-gemini Synergy**: Combines with `hooks/goal-verifier/` to prevent premature stops if test suites or linters fail.
|
|
12
12
|
|
|
13
13
|
### `/plan <prompt>`
|
|
14
14
|
- **Behavior**: Generates a comprehensive architectural plan and step-by-step implementation blueprint before touching any code.
|
|
15
|
-
- **
|
|
15
|
+
- **everything-gemini Synergy**: Activates the `architecture-designer` skill, automatically producing C4 Mermaid diagrams and risk analyses.
|
|
16
16
|
|
|
17
17
|
### `/grill-me`
|
|
18
18
|
- **Behavior**: The agent acts as an architectural interviewer, grilling the developer on edge cases, non-functional constraints, and trade-offs before generating solutions.
|
|
@@ -20,7 +20,7 @@ Slash commands in Antigravity chat trigger specialized cognitive modes, prompt r
|
|
|
20
20
|
|
|
21
21
|
### `/learn`
|
|
22
22
|
- **Behavior**: Persists lessons learned from mistakes, corrections, or complex configurations into a permanent Knowledge Item (`<appDataDir>/knowledge`).
|
|
23
|
-
- **
|
|
23
|
+
- **everything-gemini Synergy**: Connects with `repo-onboarding` and Knowledge Items schemas to build an enduring project memory.
|
|
24
24
|
|
|
25
25
|
### `/schedule`
|
|
26
26
|
- **Behavior**: Schedules delayed one-shot timers or recurring cron jobs with reactive wakeup.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
#
|
|
2
|
+
# Everything Gemini Ephemeral Context Injector: PreInvocation Hook
|
|
3
3
|
# Sends a transient reminder to the agent prior to model invocation.
|
|
4
4
|
|
|
5
5
|
set -eo pipefail
|
|
6
6
|
|
|
7
|
-
echo '{"injectSteps": [{"ephemeralMessage": "[
|
|
7
|
+
echo '{"injectSteps": [{"ephemeralMessage": "[Everything Gemini Harness Active]: Verify code with tests, follow progressive disclosure, and ensure all file links use markdown file:// scheme."}]}'
|
|
8
8
|
exit 0
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
#
|
|
2
|
+
# Everything Gemini Goal Verifier: Stop Hook
|
|
3
3
|
# Checks if the workspace has uncommitted broken tests before allowing termination.
|
|
4
4
|
|
|
5
5
|
set -eo pipefail
|
|
@@ -14,7 +14,7 @@ if git rev-parse --is-inside-work-tree >/dev/null 2>&1; then
|
|
|
14
14
|
# If package.json has a test script, verify tests pass
|
|
15
15
|
if [ -f "package.json" ] && grep -q '"test"' package.json; then
|
|
16
16
|
if ! npm test >/dev/null 2>&1; then
|
|
17
|
-
echo "{\"decision\": \"continue\", \"reason\": \"[
|
|
17
|
+
echo "{\"decision\": \"continue\", \"reason\": \"[Everything Gemini Goal Verifier] Uncommitted changes failed 'npm test'. Please resolve failing tests before stopping.\"}"
|
|
18
18
|
exit 0
|
|
19
19
|
fi
|
|
20
20
|
fi
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
#
|
|
2
|
+
# Everything Gemini Safety Shield: PreToolUse Security Gate
|
|
3
3
|
# Reads protojson hook payload from stdin, evaluates safety, outputs JSON on stdout.
|
|
4
4
|
|
|
5
5
|
set -eo pipefail
|
|
@@ -46,7 +46,7 @@ ASK_PATTERNS=(
|
|
|
46
46
|
# Check blocked patterns
|
|
47
47
|
for pattern in "${BLOCKED_PATTERNS[@]}"; do
|
|
48
48
|
if [[ "$CMD" == *"$pattern"* ]]; then
|
|
49
|
-
echo "{\"decision\": \"deny\", \"reason\": \"[
|
|
49
|
+
echo "{\"decision\": \"deny\", \"reason\": \"[Everything Gemini Safety Shield] Catastrophic command pattern detected and blocked: '$pattern'\"}"
|
|
50
50
|
exit 0
|
|
51
51
|
fi
|
|
52
52
|
done
|
|
@@ -54,7 +54,7 @@ done
|
|
|
54
54
|
# Check ask patterns
|
|
55
55
|
for pattern in "${ASK_PATTERNS[@]}"; do
|
|
56
56
|
if [[ "$CMD" == *"$pattern"* ]]; then
|
|
57
|
-
echo "{\"decision\": \"ask\", \"reason\": \"[
|
|
57
|
+
echo "{\"decision\": \"ask\", \"reason\": \"[Everything Gemini Safety Shield] Potentially destructive command requires user confirmation: '$pattern'\"}"
|
|
58
58
|
exit 0
|
|
59
59
|
fi
|
|
60
60
|
done
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "everything-gemini",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Everything Gemini (everything-gemini) - The Ultimate Agent Harness, Multi-Agent Orchestrator & Performance Suite for Gemini & Google Antigravity",
|
|
5
5
|
"main": "bin/everything-gemini",
|
|
6
6
|
"bin": {
|
package/plugins/core/plugin.json
CHANGED
package/rules/common/AGENTS.md
CHANGED
package/rules/common/GEMINI.md
CHANGED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cloudflare-workers
|
|
3
|
+
description: >-
|
|
4
|
+
Use this skill when developing Cloudflare Workers, configuring Wrangler v3, integrating Cloudflare D1 SQL or KV storage, or deploying global edge APIs.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Cloudflare Workers & Edge Infrastructure
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
Cloudflare Workers execute on V8 isolates across 300+ edge locations worldwide. This skill provides architectural patterns for ultra-low latency serverless APIs, D1 relational databases, KV storage, and Wrangler configuration.
|
|
11
|
+
|
|
12
|
+
## Procedural Workflow
|
|
13
|
+
|
|
14
|
+
### 1. Project Scaffolding & Wrangler Config
|
|
15
|
+
Structure `wrangler.jsonc` or `wrangler.toml` with strict environment bindings:
|
|
16
|
+
```jsonc
|
|
17
|
+
{
|
|
18
|
+
"$schema": "node_modules/wrangler/config-schema.json",
|
|
19
|
+
"name": "edge-api",
|
|
20
|
+
"main": "src/index.ts",
|
|
21
|
+
"compatibility_date": "2024-09-23",
|
|
22
|
+
"compatibility_flags": ["nodejs_compat"],
|
|
23
|
+
"d1_databases": [
|
|
24
|
+
{
|
|
25
|
+
"binding": "DB",
|
|
26
|
+
"database_name": "prod-db",
|
|
27
|
+
"database_id": "xxxx-xxxx"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"kv_namespaces": [
|
|
31
|
+
{
|
|
32
|
+
"binding": "CACHE",
|
|
33
|
+
"id": "yyyy-yyyy"
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### 2. Edge Request Handling
|
|
40
|
+
Use typed `Env` interfaces and native `fetch` handlers:
|
|
41
|
+
```typescript
|
|
42
|
+
export interface Env {
|
|
43
|
+
DB: D1Database;
|
|
44
|
+
CACHE: KVNamespace;
|
|
45
|
+
API_SECRET: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export default {
|
|
49
|
+
async fetch(request: Request, env: Env, ctx: ExecutionContext): Promise<Response> {
|
|
50
|
+
const url = new URL(request.url);
|
|
51
|
+
if (request.method === "OPTIONS") {
|
|
52
|
+
return handleCors(request);
|
|
53
|
+
}
|
|
54
|
+
// Execution context for background tasks that shouldn't block response
|
|
55
|
+
ctx.waitUntil(logAnalytics(request, env));
|
|
56
|
+
return new Response(JSON.stringify({ status: "ok" }), {
|
|
57
|
+
headers: { "Content-Type": "application/json" }
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### 3. Edge Storage Patterns
|
|
64
|
+
- **Cloudflare KV**: High-read, low-write caching (eventually consistent). Ideal for session tokens, feature flags, and redirect maps.
|
|
65
|
+
- **Cloudflare D1**: Serverless SQLite at the edge. Always use parameterized queries (`env.DB.prepare("SELECT * FROM users WHERE id = ?").bind(id).first()`).
|
|
66
|
+
- **Cloudflare R2**: Zero-egress S3-compatible object storage.
|
|
67
|
+
|
|
68
|
+
## Verification Checklist
|
|
69
|
+
- [ ] `compatibility_date` pinned to a modern version
|
|
70
|
+
- [ ] Secrets managed via `wrangler secret put`, never hardcoded
|
|
71
|
+
- [ ] Background telemetry wrapped in `ctx.waitUntil`
|
|
72
|
+
- [ ] D1 queries use parameterized bindings to prevent SQL injection
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gemini-grounding
|
|
3
|
+
description: >-
|
|
4
|
+
Use this skill when verifying dynamic facts, researching live documentation, fact-checking technical claims, or integrating Google Search grounding into Gemini agent reasoning workflows.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Gemini Search Grounding & Dynamic Fact Verification
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
Gemini frontier models feature native **Google Search Grounding**, enabling agents to supplement static training weights with real-time web citations, current API documentation, and package release notes. This skill outlines best practices for search grounding, citation verification, and hallucination elimination.
|
|
11
|
+
|
|
12
|
+
## Procedural Workflow
|
|
13
|
+
|
|
14
|
+
### 1. Identify Grounding Triggers
|
|
15
|
+
Activate search grounding when:
|
|
16
|
+
- Querying rapidly evolving SDKs, library APIs, or breaking versions released after model cutoffs.
|
|
17
|
+
- Verifying deployment status, cloud service outages, or public CVE advisories.
|
|
18
|
+
- Researching latest framework releases (e.g., Next.js canary features, Tailwind v4, React 19).
|
|
19
|
+
|
|
20
|
+
### 2. Search Query Formulation
|
|
21
|
+
Formulate targeted search queries:
|
|
22
|
+
- **Exact Syntax Match**: Use quotes for exact error strings or function signatures.
|
|
23
|
+
- **Official Domain Prioritization**: Target authoritative documentation:
|
|
24
|
+
- `site:github.com` for issue threads and release tags.
|
|
25
|
+
- `site:npmjs.com` or `site:pypi.org` for version numbers and dependencies.
|
|
26
|
+
- Official vendor docs (`docs.antigravity.google`, `developer.mozilla.org`).
|
|
27
|
+
|
|
28
|
+
### 3. Verification & Citation Attribution
|
|
29
|
+
When incorporating search findings into code:
|
|
30
|
+
1. **Cross-Check with Active Code**: Never assume an external snippet works as-is; inspect local types and configurations first.
|
|
31
|
+
2. **Clickable Links**: Link external references using markdown links in documentation and artifacts.
|
|
32
|
+
3. **Zero-Trust Validation**: Verify any third-party code against local linters (`npm test` or typecheckers).
|
|
33
|
+
|
|
34
|
+
## Verification Checklist
|
|
35
|
+
- [ ] Claims backed by verifiable, recent documentation
|
|
36
|
+
- [ ] No hallucinated imports or deprecated APIs
|
|
37
|
+
- [ ] External references properly attributed
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: kubernetes-operator
|
|
3
|
+
description: >-
|
|
4
|
+
Use this skill when authoring Kubernetes manifests, configuring Helm charts, setting up Horizontal Pod Autoscalers (HPA), or troubleshooting container cluster deployments.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Kubernetes Cluster & Workload Operations
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
This skill guides the agent in writing declarative, production-ready Kubernetes manifests, configuring health probes, resource constraints, ingress controllers, and rolling update strategies.
|
|
11
|
+
|
|
12
|
+
## Procedural Workflow
|
|
13
|
+
|
|
14
|
+
### 1. Hardened Deployment Manifest Pattern
|
|
15
|
+
Always configure resource limits, security contexts, and liveness/readiness probes:
|
|
16
|
+
```yaml
|
|
17
|
+
apiVersion: apps/v1
|
|
18
|
+
kind: Deployment
|
|
19
|
+
metadata:
|
|
20
|
+
name: api-service
|
|
21
|
+
labels:
|
|
22
|
+
app.kubernetes.io/name: api-service
|
|
23
|
+
spec:
|
|
24
|
+
replicas: 3
|
|
25
|
+
strategy:
|
|
26
|
+
type: RollingUpdate
|
|
27
|
+
rollingUpdate:
|
|
28
|
+
maxSurge: 1
|
|
29
|
+
maxUnavailable: 0
|
|
30
|
+
selector:
|
|
31
|
+
matchLabels:
|
|
32
|
+
app: api-service
|
|
33
|
+
template:
|
|
34
|
+
metadata:
|
|
35
|
+
labels:
|
|
36
|
+
app: api-service
|
|
37
|
+
spec:
|
|
38
|
+
securityContext:
|
|
39
|
+
runAsNonRoot: true
|
|
40
|
+
runAsUser: 10001
|
|
41
|
+
containers:
|
|
42
|
+
- name: app
|
|
43
|
+
image: myregistry.azurecr.io/api-service:v1.0.0
|
|
44
|
+
securityContext:
|
|
45
|
+
readOnlyRootFilesystem: true
|
|
46
|
+
allowPrivilegeEscalation: false
|
|
47
|
+
resources:
|
|
48
|
+
requests:
|
|
49
|
+
cpu: "100m"
|
|
50
|
+
memory: "128Mi"
|
|
51
|
+
limits:
|
|
52
|
+
cpu: "500m"
|
|
53
|
+
memory: "512Mi"
|
|
54
|
+
ports:
|
|
55
|
+
- containerPort: 8080
|
|
56
|
+
readinessProbe:
|
|
57
|
+
httpGet:
|
|
58
|
+
path: /health/ready
|
|
59
|
+
port: 8080
|
|
60
|
+
initialDelaySeconds: 5
|
|
61
|
+
periodSeconds: 10
|
|
62
|
+
livenessProbe:
|
|
63
|
+
httpGet:
|
|
64
|
+
path: /health/live
|
|
65
|
+
port: 8080
|
|
66
|
+
initialDelaySeconds: 15
|
|
67
|
+
periodSeconds: 20
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### 2. Auto-scaling & Ingress
|
|
71
|
+
- **HorizontalPodAutoscaler (HPA)**: Target CPU (e.g. 70%) and Memory utilization before traffic spikes.
|
|
72
|
+
- **Ingress with TLS**: Annotate with cert-manager (`cert-manager.io/cluster-issuer: letsencrypt-prod`) for automated SSL lifecycle.
|
|
73
|
+
|
|
74
|
+
### 3. Triage & Debugging Commands
|
|
75
|
+
- Inspect crash loops: `kubectl logs -l app=api-service --tail=100 -p` (previous container logs).
|
|
76
|
+
- Inspect pod events: `kubectl describe pod <pod-name>`.
|
|
77
|
+
|
|
78
|
+
## Verification Checklist
|
|
79
|
+
- [ ] Non-root security context configured (`runAsNonRoot: true`)
|
|
80
|
+
- [ ] Both readiness and liveness probes defined
|
|
81
|
+
- [ ] Memory limits defined to prevent cluster OOM killer cascades
|
|
82
|
+
- [ ] Rolling update configured with zero downtime (`maxUnavailable: 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
|