everything-gemini 0.0.0-stage → 1.0.0

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 (96) 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/AGENTS.md +15 -0
  9. package/CONTRIBUTING.md +114 -0
  10. package/GEMINI.md +15 -0
  11. package/LICENSE +176 -0
  12. package/README.md +310 -2
  13. package/agents/architect.md +21 -0
  14. package/agents/browser-qa.md +26 -0
  15. package/agents/build-repair.md +20 -0
  16. package/agents/code-reviewer.md +22 -0
  17. package/agents/planner.md +21 -0
  18. package/agents/security-auditor.md +21 -0
  19. package/bin/everything-gemini +514 -0
  20. package/docs/architecture/cortex-loop.md +57 -0
  21. package/docs/architecture/memory-and-context.md +50 -0
  22. package/docs/architecture/progressive-disclosure.md +41 -0
  23. package/docs/customization/hooks-reference.md +78 -0
  24. package/docs/ecc-vs-everything-gemini.md +59 -0
  25. package/docs/surfaces/cli.md +46 -0
  26. package/docs/surfaces/desktop-2.0.md +30 -0
  27. package/docs/surfaces/ide.md +29 -0
  28. package/docs/surfaces/python-sdk.md +53 -0
  29. package/docs/workflows/slash-commands.md +27 -0
  30. package/hooks/auto-lint-formatter/hooks.json +16 -0
  31. package/hooks/auto-lint-formatter/scripts/auto-format.sh +48 -0
  32. package/hooks/ephemeral-context/hooks.json +11 -0
  33. package/hooks/ephemeral-context/scripts/inject-context.sh +8 -0
  34. package/hooks/gemini-shield/hooks.json +16 -0
  35. package/hooks/gemini-shield/scripts/shield-gate.sh +72 -0
  36. package/hooks/goal-verifier/hooks.json +11 -0
  37. package/hooks/goal-verifier/scripts/verify-goal.sh +26 -0
  38. package/hooks/learned-instincts/hooks.json +11 -0
  39. package/hooks/learned-instincts/scripts/save-instinct.sh +23 -0
  40. package/hooks/safety-shield/hooks.json +16 -0
  41. package/hooks/safety-shield/scripts/safety-gate.sh +64 -0
  42. package/mcp/README.md +41 -0
  43. package/mcp/mcp_config.example.json +30 -0
  44. package/package.json +39 -4
  45. package/plugins/core/hooks.json +16 -0
  46. package/plugins/core/plugin.json +3 -0
  47. package/plugins/core/rules/core-practices.md +5 -0
  48. package/plugins/python-ai/plugin.json +3 -0
  49. package/plugins/python-ai/rules/ai-agent-patterns.md +5 -0
  50. package/plugins/python-ai/skills/antigravity-sdk-orchestrator/SKILL.md +54 -0
  51. package/plugins/security-shield/hooks.json +16 -0
  52. package/plugins/security-shield/plugin.json +3 -0
  53. package/plugins/security-shield/rules/zero-trust.md +5 -0
  54. package/plugins/web-fullstack/plugin.json +3 -0
  55. package/plugins/web-fullstack/rules/frontend-standards.md +5 -0
  56. package/plugins/web-fullstack/skills/responsive-design/SKILL.md +23 -0
  57. package/rules/common/AGENTS.md +30 -0
  58. package/rules/common/GEMINI.md +30 -0
  59. package/rules/languages/golang.md +10 -0
  60. package/rules/languages/python.md +16 -0
  61. package/rules/languages/typescript.md +18 -0
  62. package/rules/paradigms/security-hardened.md +17 -0
  63. package/rules/paradigms/tdd.md +19 -0
  64. package/scripts/install.ps1 +26 -0
  65. package/scripts/install.sh +52 -0
  66. package/scripts/validate.sh +73 -0
  67. package/skills/api-craftsman/SKILL.md +45 -0
  68. package/skills/api-craftsman/examples/openapi-spec.yaml +37 -0
  69. package/skills/architecture-designer/SKILL.md +33 -0
  70. package/skills/architecture-designer/examples/c4-architecture.md +33 -0
  71. package/skills/browser-qa-tester/SKILL.md +43 -0
  72. package/skills/browser-qa-tester/references/browser-recipes.md +21 -0
  73. package/skills/context-caching/SKILL.md +48 -0
  74. package/skills/continuous-learning/SKILL.md +31 -0
  75. package/skills/database-architect/SKILL.md +26 -0
  76. package/skills/database-architect/references/migration-checklist.md +9 -0
  77. package/skills/devops-pipeline/SKILL.md +23 -0
  78. package/skills/devops-pipeline/templates/github-ci.yml +31 -0
  79. package/skills/fullstack-nextjs/SKILL.md +27 -0
  80. package/skills/fullstack-nextjs/references/app-router-patterns.md +46 -0
  81. package/skills/gemini-multimodal/SKILL.md +43 -0
  82. package/skills/git-craftsman/SKILL.md +43 -0
  83. package/skills/performance-profiler/SKILL.md +35 -0
  84. package/skills/performance-profiler/scripts/profile-node.sh +13 -0
  85. package/skills/repo-onboarding/SKILL.md +35 -0
  86. package/skills/repo-onboarding/references/knowledge-item-schema.md +30 -0
  87. package/skills/root-cause-debugger/SKILL.md +35 -0
  88. package/skills/root-cause-debugger/scripts/git-bisect-helper.sh +13 -0
  89. package/skills/security-audit/SKILL.md +29 -0
  90. package/skills/security-audit/scripts/scan-secrets.sh +26 -0
  91. package/skills/subagent-handoff/SKILL.md +28 -0
  92. package/skills/subagent-handoff/references/handoff-patterns.md +30 -0
  93. package/skills/tdd-workflow/SKILL.md +40 -0
  94. package/skills/tdd-workflow/references/tdd-patterns.md +23 -0
  95. package/templates/minimal/GEMINI.md +5 -0
  96. package/templates/minimal/hooks.json +16 -0
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env bash
2
+ # Fast git bisect helper script
3
+
4
+ TEST_CMD="${1:-npm test}"
5
+
6
+ echo "Running bisect test: $TEST_CMD"
7
+ if eval "$TEST_CMD" >/dev/null 2>&1; then
8
+ echo "Commit is GOOD (tests passed)"
9
+ exit 0
10
+ else
11
+ echo "Commit is BAD (tests failed)"
12
+ exit 1
13
+ fi
@@ -0,0 +1,29 @@
1
+ ---
2
+ name: security-audit
3
+ description: >-
4
+ Performs security audits, OWASP top 10 vulnerability checks, dependency vulnerability scans, and secret leakage detection. Use when reviewing code for security vulnerabilities.
5
+ ---
6
+
7
+ # Security Audit
8
+
9
+ This skill guides the agent through proactive security evaluations, secret detection, and dependency hygiene.
10
+
11
+ ## Audit Checklist
12
+
13
+ ### 1. Secret Scanning
14
+ Ensure no sensitive keys, tokens, private keys, or credentials are hardcoded:
15
+ - Check for `.env`, `*.pem`, `id_rsa`, AWS keys (`AKIA...`), GitHub tokens (`ghp_...`).
16
+ - Execute `scripts/scan-secrets.sh` to search for known credential regex patterns.
17
+
18
+ ### 2. Dependency Vulnerability Assessment
19
+ Run ecosystem-specific vulnerability scanners:
20
+ - **Node**: `npm audit` or `pnpm audit`
21
+ - **Python**: `pip-audit`
22
+ - **Go**: `govulncheck ./...`
23
+ - **Rust**: `cargo audit`
24
+
25
+ ### 3. Code-Level Vulnerability Inspection
26
+ - **Injection Flaws**: Check all database queries for parameterized values. Ensure no raw string interpolation in SQL or NoSQL queries.
27
+ - **Cross-Site Scripting (XSS)**: Ensure user input rendered in HTML is sanitized or escaped. In React, inspect any usage of `dangerouslySetInnerHTML`.
28
+ - **Insecure Deserialization**: Avoid `eval()`, `pickle.loads()`, or unrestricted YAML parsing (`yaml.unsafe_load`).
29
+ - **Path Traversal**: Ensure file system operations resolve paths against a safe root directory.
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/env bash
2
+ # Fast secret scanner for committed files
3
+
4
+ echo "Scanning tracked files for potential exposed secrets..."
5
+
6
+ PATTERNS=(
7
+ "AKIA[0-9A-Z]{16}"
8
+ "ghp_[a-zA-Z0-9]{36}"
9
+ "github_pat_[a-zA-Z0-9_]{82}"
10
+ "-----BEGIN (RSA|EC|OPENSSH) PRIVATE KEY-----"
11
+ "AIza[0-9A-Za-z\\-_]{35}"
12
+ )
13
+
14
+ FOUND=0
15
+ for pattern in "${PATTERNS[@]}"; do
16
+ MATCHES=$(git grep -EI "$pattern" 2>/dev/null || true)
17
+ if [ -n "$MATCHES" ]; then
18
+ echo "⚠️ Potential secret match for pattern: $pattern"
19
+ echo "$MATCHES"
20
+ FOUND=$((FOUND + 1))
21
+ fi
22
+ done
23
+
24
+ if [ "$FOUND" -eq 0 ]; then
25
+ echo "✔ No high-entropy secrets detected."
26
+ fi
@@ -0,0 +1,28 @@
1
+ ---
2
+ name: subagent-handoff
3
+ description: >-
4
+ Guides the primary agent in delegating complex, multi-step subtasks to scoped subagents (Planner, Reviewer, Build-Repair, QA, Security) with minimal token contamination and deterministic handoffs.
5
+ ---
6
+
7
+ # Subagent Handoff Protocol
8
+
9
+ This skill governs how the primary agent orchestrates and delegates work to scoped subagents.
10
+
11
+ ## Core Directives
12
+
13
+ 1. **When to Delegate vs. Execute Directly**:
14
+ - **Delegate**: Visual browser testing (`browser_subagent`), deep dependency planning (`agents/planner.md`), adversarial code review (`agents/code-reviewer.md`), and build-break triage (`agents/build-repair.md`).
15
+ - **Execute Directly**: Simple file edits, direct user questions, single test runs, and minor refactorings.
16
+
17
+ 2. **The Clean Handoff Principle**:
18
+ - Never dump the entire conversation history into the subagent prompt.
19
+ - Provide a self-contained, bounded task prompt containing:
20
+ 1. Specific objective.
21
+ 2. Exact file paths to inspect.
22
+ 3. Clear constraints and tools allowed.
23
+ 4. Explicit stop condition and expected return report schema.
24
+
25
+ 3. **Synthesis & Integration**:
26
+ - When the subagent completes its task and returns its report, the primary agent evaluates the report, links findings to source files, and seamlessly continues the top-level plan.
27
+
28
+ For delegation prompt templates and examples, see [references/handoff-patterns.md](./references/handoff-patterns.md).
@@ -0,0 +1,30 @@
1
+ # Subagent Handoff Patterns & Prompt Templates
2
+
3
+ ## Pattern 1: Code Review Delegation Template
4
+ ```text
5
+ Task Name: Security & Quality Code Review
6
+ Task:
7
+ You are acting as the 'code-reviewer' subagent.
8
+ Inspect the recent changes in git branch 'feature/payment-v2' (or git diff HEAD~1).
9
+ Focus on:
10
+ 1. Null/undefined safety and edge cases in checkout logic.
11
+ 2. Parameterized queries in src/services/payment.ts.
12
+ 3. Verification that tests pass via 'npm test'.
13
+ Stop condition: All diff files reviewed and tests executed.
14
+ Return a markdown report with Verdict, Critical Blockers, and Suggestions.
15
+ ```
16
+
17
+ ## Pattern 2: Build-Repair Delegation Template
18
+ ```text
19
+ Task Name: TypeScript Compiler & Test Fix
20
+ Task:
21
+ You are acting as the 'build-repair' subagent.
22
+ Command 'npm run build' is failing with:
23
+ "TS2322: Type 'string' is not assignable to type 'number' in src/api/user.ts:54"
24
+ 1. Read src/api/user.ts around line 54.
25
+ 2. Trace the type definition in src/types/user.ts.
26
+ 3. Apply a surgical fix using replace_file_content.
27
+ 4. Verify by running 'npm run build'.
28
+ Stop condition: 'npm run build' exits with code 0.
29
+ Return a report summarizing the root cause and applied fix.
30
+ ```
@@ -0,0 +1,40 @@
1
+ ---
2
+ name: tdd-workflow
3
+ description: >-
4
+ Enforces strict Test-Driven Development (Red-Green-Refactor). Use this skill when the user asks to implement a new feature, fix a bug, or refactor logic using TDD.
5
+ ---
6
+
7
+ # Test-Driven Development (TDD) Workflow
8
+
9
+ This skill guides the agent through an uncompromising Red-Green-Refactor cycle.
10
+
11
+ ## Procedure
12
+
13
+ ### Step 1: Discover Existing Test Runner
14
+ Detect the test framework in use:
15
+ - **Node/TS**: Check `package.json` for `jest`, `vitest`, `mocha`, or `npm test`.
16
+ - **Python**: Check for `pytest` or `unittest`.
17
+ - **Go**: Look for `*_test.go` and run `go test ./...`.
18
+
19
+ Run the existing suite to ensure the baseline is green before touching anything:
20
+ ```bash
21
+ # Example
22
+ npm test
23
+ ```
24
+
25
+ ### Step 2: Phase RED (Write Failing Test)
26
+ 1. Write a minimal test file or test case specifying the expected outcome or reproducing the exact bug reported.
27
+ 2. Run the specific test and verify that it **fails**.
28
+ 3. Confirm failure reason: It must fail on the assertion, NOT because of an import error or syntax error.
29
+
30
+ ### Step 3: Phase GREEN (Write Minimal Implementation)
31
+ 1. Write the absolute minimum production code to satisfy the test assertion.
32
+ 2. Do not prematurely optimize or handle un-tested edge cases yet.
33
+ 3. Re-run the test to confirm it now passes (turns green).
34
+
35
+ ### Step 4: Phase REFACTOR (Clean Code with Confidence)
36
+ 1. Eliminate duplication, extract functions, refine variable names, and improve readability.
37
+ 2. Re-run tests immediately after each edit.
38
+ 3. Repeat for next edge case.
39
+
40
+ For detailed test patterns and mocking strategies, see [references/tdd-patterns.md](./references/tdd-patterns.md).
@@ -0,0 +1,23 @@
1
+ # TDD Patterns & Mocking Reference
2
+
3
+ ## 1. Arrange-Act-Assert (AAA)
4
+ Always structure tests cleanly into three discrete blocks:
5
+ ```typescript
6
+ it('should calculate discount correctly', () => {
7
+ // Arrange
8
+ const cart = new Cart();
9
+ cart.addItem({ price: 100 });
10
+
11
+ // Act
12
+ const total = cart.getDiscountedTotal(0.2);
13
+
14
+ // Assert
15
+ expect(total).toBe(80);
16
+ });
17
+ ```
18
+
19
+ ## 2. Mocking Boundaries
20
+ - Only mock at system boundaries (e.g. 3rd-party HTTP APIs, payment gateways, hardware).
21
+ - Avoid mocking internal domain services or utilities; test them through public contracts.
22
+ - In Python, use `unittest.mock.patch` with context managers.
23
+ - In Node/TypeScript, use `vi.spyOn` or `jest.spyOn`.
@@ -0,0 +1,5 @@
1
+ # Minimal Antigravity Guidelines
2
+
3
+ 1. **Verify**: Always check code with tests or linters after making changes.
4
+ 2. **Minimal Diffs**: Keep modifications targeted and preserve existing styles and comments.
5
+ 3. **Zero Secrets**: Never print, log, or commit secret keys or sensitive tokens.
@@ -0,0 +1,16 @@
1
+ {
2
+ "safety-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
+ }