everything-gemini 0.0.0-stage → 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.
Files changed (103) hide show
  1. package/.agents/hooks.json +16 -0
  2. package/.agents/rules/everything-gemini-dev.md +5 -0
  3. package/.agents/rules/instincts.md +8 -0
  4. package/.agents/skills/everything-gemini-maintainer/SKILL.md +22 -0
  5. package/.github/ISSUE_TEMPLATE/skill_proposal.md +24 -0
  6. package/.github/pull_request_template.md +9 -0
  7. package/.github/workflows/ci.yml +35 -0
  8. package/.github/workflows/release.yml +42 -0
  9. package/AGENTS.md +15 -0
  10. package/CHANGELOG.md +45 -0
  11. package/CONTRIBUTING.md +114 -0
  12. package/GEMINI.md +15 -0
  13. package/LICENSE +176 -0
  14. package/README.md +316 -2
  15. package/agents/architect.md +21 -0
  16. package/agents/browser-qa.md +26 -0
  17. package/agents/build-repair.md +20 -0
  18. package/agents/code-reviewer.md +22 -0
  19. package/agents/planner.md +21 -0
  20. package/agents/security-auditor.md +21 -0
  21. package/bin/everything-gemini +514 -0
  22. package/docs/architecture/cortex-loop.md +57 -0
  23. package/docs/architecture/memory-and-context.md +50 -0
  24. package/docs/architecture/progressive-disclosure.md +41 -0
  25. package/docs/customization/hooks-reference.md +78 -0
  26. package/docs/ecc-vs-everything-gemini.md +59 -0
  27. package/docs/surfaces/cli.md +46 -0
  28. package/docs/surfaces/desktop-2.0.md +30 -0
  29. package/docs/surfaces/ide.md +29 -0
  30. package/docs/surfaces/python-sdk.md +53 -0
  31. package/docs/workflows/slash-commands.md +27 -0
  32. package/hooks/auto-lint-formatter/hooks.json +16 -0
  33. package/hooks/auto-lint-formatter/scripts/auto-format.sh +48 -0
  34. package/hooks/ephemeral-context/hooks.json +11 -0
  35. package/hooks/ephemeral-context/scripts/inject-context.sh +8 -0
  36. package/hooks/gemini-shield/hooks.json +16 -0
  37. package/hooks/gemini-shield/scripts/shield-gate.sh +72 -0
  38. package/hooks/goal-verifier/hooks.json +11 -0
  39. package/hooks/goal-verifier/scripts/verify-goal.sh +26 -0
  40. package/hooks/learned-instincts/hooks.json +11 -0
  41. package/hooks/learned-instincts/scripts/save-instinct.sh +23 -0
  42. package/hooks/safety-shield/hooks.json +16 -0
  43. package/hooks/safety-shield/scripts/safety-gate.sh +64 -0
  44. package/mcp/README.md +41 -0
  45. package/mcp/mcp_config.example.json +30 -0
  46. package/package.json +39 -4
  47. package/plugins/core/hooks.json +16 -0
  48. package/plugins/core/plugin.json +3 -0
  49. package/plugins/core/rules/core-practices.md +5 -0
  50. package/plugins/python-ai/plugin.json +3 -0
  51. package/plugins/python-ai/rules/ai-agent-patterns.md +5 -0
  52. package/plugins/python-ai/skills/antigravity-sdk-orchestrator/SKILL.md +54 -0
  53. package/plugins/security-shield/hooks.json +16 -0
  54. package/plugins/security-shield/plugin.json +3 -0
  55. package/plugins/security-shield/rules/zero-trust.md +5 -0
  56. package/plugins/web-fullstack/plugin.json +3 -0
  57. package/plugins/web-fullstack/rules/frontend-standards.md +5 -0
  58. package/plugins/web-fullstack/skills/responsive-design/SKILL.md +23 -0
  59. package/rules/common/AGENTS.md +30 -0
  60. package/rules/common/GEMINI.md +30 -0
  61. package/rules/languages/golang.md +10 -0
  62. package/rules/languages/python.md +16 -0
  63. package/rules/languages/typescript.md +18 -0
  64. package/rules/paradigms/security-hardened.md +17 -0
  65. package/rules/paradigms/tdd.md +19 -0
  66. package/scripts/install.ps1 +26 -0
  67. package/scripts/install.sh +52 -0
  68. package/scripts/validate.sh +73 -0
  69. package/skills/api-craftsman/SKILL.md +45 -0
  70. package/skills/api-craftsman/examples/openapi-spec.yaml +37 -0
  71. package/skills/architecture-designer/SKILL.md +33 -0
  72. package/skills/architecture-designer/examples/c4-architecture.md +33 -0
  73. package/skills/browser-qa-tester/SKILL.md +43 -0
  74. package/skills/browser-qa-tester/references/browser-recipes.md +21 -0
  75. package/skills/cloudflare-workers/SKILL.md +72 -0
  76. package/skills/context-caching/SKILL.md +48 -0
  77. package/skills/continuous-learning/SKILL.md +31 -0
  78. package/skills/database-architect/SKILL.md +26 -0
  79. package/skills/database-architect/references/migration-checklist.md +9 -0
  80. package/skills/devops-pipeline/SKILL.md +23 -0
  81. package/skills/devops-pipeline/templates/github-ci.yml +31 -0
  82. package/skills/fullstack-nextjs/SKILL.md +27 -0
  83. package/skills/fullstack-nextjs/references/app-router-patterns.md +46 -0
  84. package/skills/gemini-grounding/SKILL.md +37 -0
  85. package/skills/gemini-multimodal/SKILL.md +43 -0
  86. package/skills/git-craftsman/SKILL.md +43 -0
  87. package/skills/kubernetes-operator/SKILL.md +82 -0
  88. package/skills/performance-profiler/SKILL.md +35 -0
  89. package/skills/performance-profiler/scripts/profile-node.sh +13 -0
  90. package/skills/repo-onboarding/SKILL.md +35 -0
  91. package/skills/repo-onboarding/references/knowledge-item-schema.md +30 -0
  92. package/skills/root-cause-debugger/SKILL.md +35 -0
  93. package/skills/root-cause-debugger/scripts/git-bisect-helper.sh +13 -0
  94. package/skills/security-audit/SKILL.md +29 -0
  95. package/skills/security-audit/scripts/scan-secrets.sh +26 -0
  96. package/skills/stripe-integration/SKILL.md +65 -0
  97. package/skills/subagent-handoff/SKILL.md +28 -0
  98. package/skills/subagent-handoff/references/handoff-patterns.md +30 -0
  99. package/skills/supabase-architect/SKILL.md +53 -0
  100. package/skills/tdd-workflow/SKILL.md +40 -0
  101. package/skills/tdd-workflow/references/tdd-patterns.md +23 -0
  102. package/templates/minimal/GEMINI.md +5 -0
  103. package/templates/minimal/hooks.json +16 -0
package/mcp/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # Model Context Protocol (MCP) in Antigravity
2
+
3
+ The Model Context Protocol (MCP) is an open standard enabling secure, bidirectional tool and resource sharing between Antigravity and external services.
4
+
5
+ ## Configuration Locations
6
+ - **Global**: `~/.gemini/config/mcp_config.json` (applies to all sessions).
7
+ - **Workspace Project**: `.agents/mcp_config.json`.
8
+ - **Plugin Packaged**: `plugins/<plugin_name>/mcp_config.json`.
9
+
10
+ ## Supported Transports
11
+
12
+ ### 1. Stdio (Local Process)
13
+ Antigravity launches a local executable or Node/Python script, communicating over standard input and output:
14
+ ```json
15
+ {
16
+ "mcpServers": {
17
+ "sqlite": {
18
+ "command": "npx",
19
+ "args": ["-y", "@modelcontextprotocol/server-sqlite", "./data/app.db"],
20
+ "env": {
21
+ "DB_READONLY": "true"
22
+ }
23
+ }
24
+ }
25
+ }
26
+ ```
27
+
28
+ ### 2. SSE (Remote HTTP / Server-Sent Events)
29
+ Antigravity connects to a remote MCP endpoint over HTTPS:
30
+ ```json
31
+ {
32
+ "mcpServers": {
33
+ "remote-tools": {
34
+ "serverUrl": "https://mcp.internal.company.com/sse"
35
+ }
36
+ }
37
+ }
38
+ ```
39
+
40
+ ## Tool Auto-Discovery & Execution
41
+ Once connected, tools declared by MCP servers are automatically injected into the agent's system prompt and executed through Antigravity's Language Server. Inspect active MCP servers in the Antigravity UI via **Additional Options (...) > MCP Servers**.
@@ -0,0 +1,30 @@
1
+ {
2
+ "mcpServers": {
3
+ "github": {
4
+ "command": "npx",
5
+ "args": ["-y", "@modelcontextprotocol/server-github"],
6
+ "env": {
7
+ "GITHUB_PERSONAL_ACCESS_TOKEN": "YOUR_GITHUB_PAT"
8
+ }
9
+ },
10
+ "sqlite": {
11
+ "command": "npx",
12
+ "args": ["-y", "@modelcontextprotocol/server-sqlite", "./data/app.db"],
13
+ "env": {
14
+ "DB_READONLY": "true"
15
+ }
16
+ },
17
+ "postgres": {
18
+ "command": "npx",
19
+ "args": ["-y", "@modelcontextprotocol/server-postgres", "postgresql://user:password@localhost:5432/mydb"]
20
+ },
21
+ "filesystem": {
22
+ "command": "npx",
23
+ "args": ["-y", "@modelcontextprotocol/server-filesystem", "./docs", "./src"]
24
+ },
25
+ "fetch": {
26
+ "command": "npx",
27
+ "args": ["-y", "@modelcontextprotocol/server-fetch"]
28
+ }
29
+ }
30
+ }
package/package.json CHANGED
@@ -1,6 +1,41 @@
1
1
  {
2
2
  "name": "everything-gemini",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.0.1",
4
+ "description": "Everything Gemini (everything-gemini) - The Ultimate Agent Harness, Multi-Agent Orchestrator & Performance Suite for Gemini & Google Antigravity",
5
+ "main": "bin/everything-gemini",
6
+ "bin": {
7
+ "everything-gemini": "bin/everything-gemini",
8
+ "egemini": "bin/everything-gemini",
9
+ "eagy": "bin/everything-gemini"
10
+ },
11
+ "scripts": {
12
+ "test": "bash scripts/validate.sh",
13
+ "validate": "bash scripts/validate.sh",
14
+ "install:core": "bash scripts/install.sh --profile core",
15
+ "install:dev": "bash scripts/install.sh --profile developer",
16
+ "install:full": "bash scripts/install.sh --profile full"
17
+ },
18
+ "keywords": [
19
+ "gemini",
20
+ "google-gemini",
21
+ "antigravity",
22
+ "agy",
23
+ "ai-agent",
24
+ "multi-agent",
25
+ "mcp",
26
+ "skills",
27
+ "rules",
28
+ "hooks",
29
+ "everything-gemini",
30
+ "egemini"
31
+ ],
32
+ "author": "Everything Antigravity Contributors",
33
+ "license": "Apache-2.0",
34
+ "repository": {
35
+ "type": "git",
36
+ "url": "git+https://github.com/salmandev/everything-gemini.git"
37
+ },
38
+ "engines": {
39
+ "node": ">=18.0.0"
40
+ }
41
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "core-safety": {
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": 10
11
+ }
12
+ ]
13
+ }
14
+ ]
15
+ }
16
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "name": "Everything Gemini Core Safety & Engineering"
3
+ }
@@ -0,0 +1,5 @@
1
+ # Core Engineering Practices
2
+
3
+ - **Self-Healing Verification**: Whenever a command errors, parse the traceback before making subsequent edits.
4
+ - **Atomic Operations**: Never leave files in half-written or unparseable states.
5
+ - **Defensive Coding**: Validate all inputs at the boundary. Fail fast and fail clearly.
@@ -0,0 +1,3 @@
1
+ {
2
+ "name": "Everything Gemini Python & AI Systems"
3
+ }
@@ -0,0 +1,5 @@
1
+ # AI Agent & LLM Engineering Standards
2
+
3
+ - **Streaming First**: Always stream LLM response tokens and reasoning thoughts for enhanced observability and interactive responsiveness.
4
+ - **Strongly-Typed Tool Calls**: Validate tool schemas using Pydantic or TypedDict before exposing them to agents.
5
+ - **Graceful Error Recovery**: Handle API rate limits, model overloads, and context length limits with exponential backoff and message compaction.
@@ -0,0 +1,54 @@
1
+ ---
2
+ name: antigravity-sdk-orchestrator
3
+ description: >-
4
+ Orchestrates, configures, and tests AI agents programmatically using the official google-antigravity Python SDK. Use when automating agent pipelines or embedding Antigravity into Python services.
5
+ ---
6
+
7
+ # Antigravity Python SDK Orchestrator
8
+
9
+ This skill guides the programmatic orchestration of Antigravity agents using `google-antigravity`.
10
+
11
+ ## Setup & Installation
12
+
13
+ ```bash
14
+ pip install google-antigravity
15
+ ```
16
+
17
+ ## Core Agent Lifecycle Pattern
18
+
19
+ ```python
20
+ import asyncio
21
+ import sys
22
+ from google.antigravity import Agent, LocalAgentConfig, CapabilitiesConfig
23
+
24
+ async def run_agent_workflow():
25
+ # Configure agent with specific capabilities
26
+ config = LocalAgentConfig(
27
+ system_instructions="You are an autonomous CI test auditor.",
28
+ capabilities=CapabilitiesConfig(), # Enables write tools if required
29
+ )
30
+
31
+ # Agent runs inside an async context manager
32
+ async with Agent(config) as agent:
33
+ response = await agent.chat("Audit all test files in tests/ and report missing cases.")
34
+
35
+ # Stream reasoning thoughts
36
+ async for thought in response.thoughts:
37
+ print(f"[Reasoning] {thought}")
38
+
39
+ # Stream tool calls
40
+ async for call in response.tool_calls:
41
+ print(f"[Tool Executed] {call.name}: {call.args}")
42
+
43
+ # Stream response text
44
+ async for token in response:
45
+ sys.stdout.write(token)
46
+ sys.stdout.flush()
47
+
48
+ if __name__ == "__main__":
49
+ asyncio.run(run_agent_workflow())
50
+ ```
51
+
52
+ ## Key Architectural Notes
53
+ - The SDK manages compiled binary discovery, tool wiring, and hook execution automatically.
54
+ - Always use `async with Agent(config)` to guarantee clean process shutdown and sandbox deallocation.
@@ -0,0 +1,16 @@
1
+ {
2
+ "strict-security-gate": {
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": 10
11
+ }
12
+ ]
13
+ }
14
+ ]
15
+ }
16
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "name": "Everything Gemini Security Shield"
3
+ }
@@ -0,0 +1,5 @@
1
+ # Zero-Trust Security Policies
2
+
3
+ - **Least Privilege Tool Execution**: Agents operate with read-only defaults unless explicit write capabilities are granted.
4
+ - **Network Boundaries**: Outbound network requests require explicit authorization unless calling approved APIs in the allowlist.
5
+ - **Sandboxed Execution**: Destructive system utilities are restricted to isolated containers or sandboxes.
@@ -0,0 +1,3 @@
1
+ {
2
+ "name": "Everything Gemini Web Fullstack Suite"
3
+ }
@@ -0,0 +1,5 @@
1
+ # Frontend Engineering Standards
2
+
3
+ - **Accessible HTML (a11y)**: Use semantic HTML5 elements (`<nav>`, `<main>`, `<article>`, `<section>`, `<button>`). Never use `<div onClick="...">` without keyboard accessibility.
4
+ - **Visual Excellence**: Avoid plain, generic color schemes. Use curated palettes (HSL/OKLCH), subtle gradients, and smooth micro-animations.
5
+ - **Zero Layout Shifts**: Always specify dimensions (`width`, `height`) on images and video embeds.
@@ -0,0 +1,23 @@
1
+ ---
2
+ name: responsive-design
3
+ description: >-
4
+ Guides creating mobile-responsive layouts, fluid typography, flex/grid structures, and cross-browser testing. Use when designing or debugging responsive user interfaces.
5
+ ---
6
+
7
+ # Responsive Design & Layout Engineering
8
+
9
+ This skill structures the creation of responsive, cross-device interfaces.
10
+
11
+ ## Guidelines
12
+
13
+ 1. **Mobile-First CSS**: Define baseline mobile styles without media queries, then use `min-width` queries for larger viewports:
14
+ ```css
15
+ .container { width: 100%; padding: 1rem; }
16
+ @media (min-width: 768px) { .container { max-width: 720px; } }
17
+ @media (min-width: 1024px) { .container { max-width: 960px; } }
18
+ ```
19
+ 2. **Fluid Typography**: Use `clamp()` for headings that adapt gracefully between screen sizes:
20
+ ```css
21
+ font-size: clamp(1.5rem, 2.5vw + 1rem, 3rem);
22
+ ```
23
+ 3. **Verify with Browser Subagent**: Use `browser_subagent` to resize the browser window across standard breakpoints (375px mobile, 768px tablet, 1440px desktop) and confirm that navigation drawers and flex wraps behave cleanly.
@@ -0,0 +1,30 @@
1
+ # Antigravity Core Behavioral Standards (everything-gemini)
2
+
3
+ These standards govern all Antigravity agent interactions within this project.
4
+
5
+ ## 1. Prime Directives
6
+
7
+ 1. **Verify Before Asserting (Zero Hallucination)**:
8
+ - Never assume file structures, function signatures, or dependencies exist without inspecting them first.
9
+ - Use `view_file`, `grep_search`, or `list_dir` to read actual code before proposing or applying changes.
10
+
11
+ 2. **Proactive Verification Loop**:
12
+ - Every modification MUST be followed by automated verification (running tests, linters, or typecheckers).
13
+ - If a command fails, inspect the error output immediately and fix the root cause rather than guessing.
14
+
15
+ 3. **Minimal Surgical Diffs**:
16
+ - Preserve all existing code formatting, comments, and docstrings unrelated to your task.
17
+ - Use targeted edit tools (`replace_file_content` or `multi_replace_file_content`) instead of overwriting whole files whenever possible.
18
+
19
+ 4. **Progressive Disclosure Discipline**:
20
+ - Keep conversation context lean. Rely on on-demand skills in `.agents/skills/` and reference documents in `references/`.
21
+ - Use rich Markdown artifacts (`.md`) in the brain directory for long-form reports and architecture designs.
22
+
23
+ 5. **Clickable Markdown Navigation**:
24
+ - Always format file paths and symbols as clickable Markdown links with the `file://` scheme: `[filename](file:///absolute/path/to/file)`.
25
+
26
+ ## 2. Terminal & Execution Safety
27
+
28
+ - Never execute commands with unchecked wildcards on destructive operations (`rm -rf *`, `git reset --hard`, `DROP DATABASE`).
29
+ - Run long-running dev servers or watchers with `IsDaemon: true` or appropriate background flags.
30
+ - For interactive testing, leverage the built-in `browser_subagent` for full automated visual validation.
@@ -0,0 +1,30 @@
1
+ # Antigravity Core Behavioral Standards (everything-gemini)
2
+
3
+ These standards govern all Antigravity agent interactions within this project.
4
+
5
+ ## 1. Prime Directives
6
+
7
+ 1. **Verify Before Asserting (Zero Hallucination)**:
8
+ - Never assume file structures, function signatures, or dependencies exist without inspecting them first.
9
+ - Use `view_file`, `grep_search`, or `list_dir` to read actual code before proposing or applying changes.
10
+
11
+ 2. **Proactive Verification Loop**:
12
+ - Every modification MUST be followed by automated verification (running tests, linters, or typecheckers).
13
+ - If a command fails, inspect the error output immediately and fix the root cause rather than guessing.
14
+
15
+ 3. **Minimal Surgical Diffs**:
16
+ - Preserve all existing code formatting, comments, and docstrings unrelated to your task.
17
+ - Use targeted edit tools (`replace_file_content` or `multi_replace_file_content`) instead of overwriting whole files whenever possible.
18
+
19
+ 4. **Progressive Disclosure Discipline**:
20
+ - Keep conversation context lean. Rely on on-demand skills in `.agents/skills/` and reference documents in `references/`.
21
+ - Use rich Markdown artifacts (`.md`) in the brain directory for long-form reports and architecture designs.
22
+
23
+ 5. **Clickable Markdown Navigation**:
24
+ - Always format file paths and symbols as clickable Markdown links with the `file://` scheme: `[filename](file:///absolute/path/to/file)`.
25
+
26
+ ## 2. Terminal & Execution Safety
27
+
28
+ - Never execute commands with unchecked wildcards on destructive operations (`rm -rf *`, `git reset --hard`, `DROP DATABASE`).
29
+ - Run long-running dev servers or watchers with `IsDaemon: true` or appropriate background flags.
30
+ - For interactive testing, leverage the built-in `browser_subagent` for full automated visual validation.
@@ -0,0 +1,10 @@
1
+ # Go (Golang) Engineering Standards
2
+
3
+ Apply these rules when writing or refactoring Go code.
4
+
5
+ ## 1. Idiomatic Go
6
+
7
+ - **Explicit Error Handling**: Never ignore error returns (`_`). Always inspect `err != nil`. Wrap errors with context using `fmt.Errorf("failed to process order %s: %w", id, err)`.
8
+ - **Context Propagation**: Pass `ctx context.Context` as the first parameter to functions that perform I/O, network calls, or long-running computations.
9
+ - **Table-Driven Tests**: Organize unit tests using table-driven test patterns with `t.Run(tc.name, func(t *testing.T) { ... })`.
10
+ - **Concurrency Safety**: Protect shared state with `sync.Mutex` or channels. Run tests with `-race` flag to detect race conditions.
@@ -0,0 +1,16 @@
1
+ # Python Engineering Standards
2
+
3
+ Apply these rules when reading, writing, or refactoring Python code.
4
+
5
+ ## 1. Modern Python (3.11+)
6
+
7
+ - **Type Hints Everywhere**: Every function must specify parameter types and return type annotations.
8
+ - **PEP 604 & 695**: Use modern union syntax (`str | None` instead of `Optional[str]`) and modern type aliases.
9
+ - **Pydantic v2**: Use `pydantic.BaseModel` with strict field validations for data transfer objects (DTOs) and API payloads.
10
+ - **Formatting & Linting**: Follow PEP 8 via `ruff` and `black`. Zero unused imports or unformatted blocks.
11
+
12
+ ## 2. Robust Async & Concurrency
13
+
14
+ - **Structured Concurrency**: Use `asyncio.TaskGroup()` (Python 3.11+) rather than unchecked `asyncio.gather()` whenever possible to prevent task leaks.
15
+ - **Context Managers**: Wrap network sessions, database connections, and file handles in `async with` or `with` blocks.
16
+ - **Exception Chaining**: Always use `raise CustomError(...) from err` to preserve stack traces.
@@ -0,0 +1,18 @@
1
+ # TypeScript Engineering Standards
2
+
3
+ Apply these rules when reading, writing, or refactoring TypeScript code.
4
+
5
+ ## 1. Type Safety & Rigor
6
+
7
+ - **Strict Mode Always**: Ensure `strict: true` in `tsconfig.json`.
8
+ - **Zero `any`**: Never use `any`. Use `unknown` with runtime type assertions, type predicates (`val is T`), or schema validators.
9
+ - **Explicit Function Signatures**: All exported functions, methods, and API handlers must have explicit return types.
10
+ - **Discriminated Unions**: Prefer discriminated unions over optional fields or loosely typed objects for state management.
11
+ - **Runtime Validation**: Use Zod, Valibot, or ArkType to parse and validate untrusted input (API responses, environment variables, user submissions).
12
+
13
+ ## 2. Modern Syntax & Architecture
14
+
15
+ - **Pure ESM**: Use ES modules (`import`/`export`) with explicit `.js` extensions where required by Node ESM.
16
+ - **Immutable by Default**: Use `readonly` arrays, `as const`, and `Readonly<T>` for static configurations and state objects.
17
+ - **Async/Await**: Avoid raw `.then()` / `.catch()` chains. Use standard `async`/`await` with structured `try`/`catch` handling.
18
+ - **Path Aliases**: Maintain clean import trees using project path aliases (e.g. `@/components/`, `@/lib/`).
@@ -0,0 +1,17 @@
1
+ # Security & Hardening Protocol
2
+
3
+ Security rules enforced for all agent code generation and execution.
4
+
5
+ ## 1. Zero Secret Leakage
6
+ - Never print, log, or commit API keys, tokens, certificates, or credentials.
7
+ - Always load secrets via environment variables (`process.env`, `os.environ`).
8
+ - Ensure `.env` files and secret patterns are listed in `.gitignore`.
9
+
10
+ ## 2. Command & Injection Defense
11
+ - Never execute shell commands by concatenating unsanitized user strings.
12
+ - Always use parameterized queries for SQL/NoSQL databases to prevent SQL injection.
13
+ - Validate paths with `path.resolve` and verify they remain within the authorized workspace directory to prevent directory traversal.
14
+
15
+ ## 3. Dependency Security
16
+ - Review new packages before adding them to `package.json` or `pyproject.toml`.
17
+ - Run automated vulnerability audits (`npm audit`, `pip-audit`, `govulncheck`) on dependencies.
@@ -0,0 +1,19 @@
1
+ # Test-Driven Development (TDD) Protocol
2
+
3
+ Enforce this workflow when developing features, fixing bugs, or refactoring code.
4
+
5
+ ## The TDD Iron Law
6
+
7
+ > **Never write production code unless an existing test is currently failing because that code does not exist.**
8
+
9
+ ### Phase 1: RED (Reproduce & Specify)
10
+ 1. Write a minimal, focused unit or integration test describing the desired behavior or reproducing the reported bug.
11
+ 2. Run the test suite and verify that the test fails for the expected reason (not due to syntax or import errors).
12
+
13
+ ### Phase 2: GREEN (Minimal Implementation)
14
+ 1. Write the absolute minimum production code required to make the failing test pass.
15
+ 2. Run the test suite and ensure all tests pass. Do not write premature optimizations or unrelated code.
16
+
17
+ ### Phase 3: REFACTOR (Clean & Harden)
18
+ 1. Clean up duplicated logic, improve naming, extract helper functions, and enforce type safety.
19
+ 2. Re-run tests after every micro-refactor to ensure zero regressions.
@@ -0,0 +1,26 @@
1
+ # Everything Gemini (everything-gemini) Installer for Windows PowerShell
2
+ param (
3
+ [string]$Profile = "developer",
4
+ [switch]$Global = $false,
5
+ [string]$Workspace = ""
6
+ )
7
+
8
+ Write-Host "🪐 Everything Gemini (everything-gemini) Installer" -ForegroundColor Cyan
9
+ Write-Host "The premier agent harness & customization suite for Google Antigravity`n" -ForegroundColor Gray
10
+
11
+ if (-not (Test-Path "bin\everything-gemini")) {
12
+ Write-Host "Downloading latest everything-gemini release..." -ForegroundColor Yellow
13
+ $tempDir = [System.IO.Path]::Combine([System.IO.Path]::GetTempPath(), [System.IO.Path]::GetRandomFileName())
14
+ git clone --depth 1 https://github.com/salmandev/everything-gemini.git $tempDir
15
+ Set-Location $tempDir
16
+ }
17
+
18
+ $cliArgs = @("install", "--profile", $Profile)
19
+ if ($Global) {
20
+ $cliArgs += "--global"
21
+ }
22
+ if ($Workspace -ne "") {
23
+ $cliArgs += @("--workspace", $Workspace)
24
+ }
25
+
26
+ node bin\everything-gemini @cliArgs
@@ -0,0 +1,52 @@
1
+ #!/usr/bin/env bash
2
+ set -eo pipefail
3
+
4
+ # Everything Gemini (everything-gemini) Installer
5
+ # Fast setup script for macOS and Linux
6
+
7
+ BOLD="\033[1m"
8
+ GREEN="\033[32m"
9
+ CYAN="\033[36m"
10
+ YELLOW="\033[33m"
11
+ RESET="\033[0m"
12
+
13
+ echo -e "${CYAN}${BOLD}"
14
+ echo " 🪐 Everything Gemini (everything-gemini) Installer"
15
+ echo " The premier agent harness & customization suite for Google Antigravity"
16
+ echo -e "${RESET}"
17
+
18
+ PROFILE="developer"
19
+ INSTALL_GLOBAL=false
20
+ TARGET_DIR=""
21
+
22
+ while [[ "$#" -gt 0 ]]; do
23
+ case $1 in
24
+ --profile) PROFILE="$2"; shift ;;
25
+ --global) INSTALL_GLOBAL=true ;;
26
+ --workspace) TARGET_DIR="$2"; shift ;;
27
+ *) echo "Unknown parameter passed: $1"; exit 1 ;;
28
+ esac
29
+ shift
30
+ done
31
+
32
+ # If run directly via curl pipe, clone into temporary directory or clone repo
33
+ if [ ! -f "bin/everything-gemini" ]; then
34
+ echo -e "${YELLOW}Downloading latest everything-gemini release...${RESET}"
35
+ TMP_DIR=$(mktemp -d)
36
+ git clone --depth 1 https://github.com/salmandev/everything-gemini.git "$TMP_DIR/everything-gemini" 2>/dev/null || {
37
+ echo "Failed to clone repository. Please ensure git is installed."
38
+ exit 1
39
+ }
40
+ cd "$TMP_DIR/everything-gemini"
41
+ fi
42
+
43
+ # Run node installer
44
+ CLI_ARGS="install --profile $PROFILE"
45
+ if [ "$INSTALL_GLOBAL" = true ]; then
46
+ CLI_ARGS="$CLI_ARGS --global"
47
+ fi
48
+ if [ -n "$TARGET_DIR" ]; then
49
+ CLI_ARGS="$CLI_ARGS --workspace $TARGET_DIR"
50
+ fi
51
+
52
+ ./bin/everything-gemini $CLI_ARGS
@@ -0,0 +1,73 @@
1
+ #!/usr/bin/env bash
2
+ set -eo pipefail
3
+
4
+ REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
5
+ ERRORS=0
6
+
7
+ echo "🔍 Validating Everything Gemini (everything-gemini) repository..."
8
+
9
+ # 1. Validate SKILL.md Frontmatter
10
+ echo " [1/4] Checking Skills & YAML frontmatter..."
11
+ SKILL_FILES=$(find "$REPO_ROOT/skills" "$REPO_ROOT/plugins" -name "SKILL.md" 2>/dev/null || true)
12
+
13
+ for skill_file in $SKILL_FILES; do
14
+ rel_path="${skill_file#$REPO_ROOT/}"
15
+
16
+ # Check for YAML frontmatter delimiters
17
+ if ! head -n 1 "$skill_file" | grep -q "^---"; then
18
+ echo " ❌ ERROR: $rel_path is missing leading '---' frontmatter delimiter"
19
+ ERRORS=$((ERRORS + 1))
20
+ continue
21
+ fi
22
+
23
+ # Check for name field
24
+ if ! grep -q "^name:" "$skill_file"; then
25
+ echo " ❌ ERROR: $rel_path is missing 'name:' field in frontmatter"
26
+ ERRORS=$((ERRORS + 1))
27
+ fi
28
+
29
+ # Check for description field
30
+ if ! grep -q "^description:" "$skill_file"; then
31
+ echo " ❌ ERROR: $rel_path is missing 'description:' field in frontmatter"
32
+ ERRORS=$((ERRORS + 1))
33
+ fi
34
+
35
+ echo " ✔ $rel_path"
36
+ done
37
+
38
+ # 2. Validate JSON Syntax
39
+ echo " [2/4] Validating JSON files..."
40
+ JSON_FILES=$(find "$REPO_ROOT" -name "*.json" ! -path "*/node_modules/*" 2>/dev/null || true)
41
+
42
+ for json_file in $JSON_FILES; do
43
+ rel_path="${json_file#$REPO_ROOT/}"
44
+ if ! node -e "JSON.parse(fs.readFileSync('$json_file', 'utf8'))" 2>/dev/null; then
45
+ echo " ❌ ERROR: Invalid JSON in $rel_path"
46
+ ERRORS=$((ERRORS + 1))
47
+ else
48
+ echo " ✔ $rel_path"
49
+ fi
50
+ done
51
+
52
+ # 3. Validate Shell Scripts Executability
53
+ echo " [3/4] Verifying script permissions..."
54
+ SH_FILES=$(find "$REPO_ROOT/scripts" "$REPO_ROOT/hooks" "$REPO_ROOT/skills" -name "*.sh" 2>/dev/null || true)
55
+
56
+ for sh_file in $SH_FILES; do
57
+ rel_path="${sh_file#$REPO_ROOT/}"
58
+ if [ ! -x "$sh_file" ]; then
59
+ echo " ⚠️ Fixing executable bit on: $rel_path"
60
+ chmod +x "$sh_file"
61
+ fi
62
+ echo " ✔ $rel_path (executable)"
63
+ done
64
+
65
+ # 4. Summary
66
+ echo " [4/4] Validation Summary"
67
+ if [ "$ERRORS" -gt 0 ]; then
68
+ echo "❌ Validation failed with $ERRORS error(s)."
69
+ exit 1
70
+ else
71
+ echo "✨ All validations passed successfully! everything-gemini is pristine."
72
+ exit 0
73
+ fi
@@ -0,0 +1,45 @@
1
+ ---
2
+ name: api-craftsman
3
+ description: >-
4
+ Designs, specifies, and reviews production-grade REST APIs, OpenAPI 3.1 specifications, gRPC protobuf schemas, and GraphQL types. Use when creating or updating API contracts.
5
+ ---
6
+
7
+ # API Craftsman
8
+
9
+ This skill enforces industry-leading API design principles, contract-first development, and consistent versioning.
10
+
11
+ ## API Design Principles
12
+
13
+ ### 1. Resource-Oriented REST
14
+ - **Nouns, Not Verbs**: Use `/api/v1/orders` instead of `/api/v1/getOrders`.
15
+ - **HTTP Methods Semantics**:
16
+ - `GET`: Safe, idempotent retrieval.
17
+ - `POST`: Non-idempotent creation or processing.
18
+ - `PUT`: Complete idempotent replacement.
19
+ - `PATCH`: Partial modification.
20
+ - `DELETE`: Idempotent removal.
21
+ - **Consistent Response Envelopes**:
22
+ ```json
23
+ {
24
+ "data": { ... },
25
+ "error": null,
26
+ "meta": { "page": 1, "pageSize": 20, "total": 100 }
27
+ }
28
+ ```
29
+
30
+ ### 2. Contract-First OpenAPI 3.1
31
+ Define schemas in OpenAPI 3.1 YAML before writing backend route handlers. Validate schemas using Zod or Pydantic models on the server.
32
+
33
+ ### 3. Error Standard (RFC 7807)
34
+ Always return errors conforming to the Problem Details specification:
35
+ ```json
36
+ {
37
+ "type": "https://api.example.com/errors/invalid-argument",
38
+ "title": "Invalid Argument",
39
+ "status": 400,
40
+ "detail": "Field 'email' must be a valid email address.",
41
+ "instance": "/orders/123/items"
42
+ }
43
+ ```
44
+
45
+ For OpenAPI 3.1 sample specifications, see [examples/openapi-spec.yaml](./examples/openapi-spec.yaml).