antigravity-init 1.0.0 → 1.0.2

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.
@@ -0,0 +1,48 @@
1
+ ---
2
+ name: agile-management
3
+ description: Manage projects using Agile methodology driven by "Context Engineering". Ensures dynamic feature changes are handled systematically, establishing clear context for every task to avoid hallucination.
4
+ ---
5
+
6
+ # Agile Management & Context Engineering
7
+
8
+ ## Overview
9
+
10
+ This skill brings the **BMAD (Breakthrough Method for Agile Ai Driven Development)** philosophy to your project. It focuses on **Context Engineering**—the art of preparing "crystal-clear" context for AI agents so they can implement tasks without needing to search for information or make assumptions.
11
+
12
+ **Core Principles:**
13
+ 1. **Context Before Code**: Never start coding without a fully defined User Story that includes all technical context (Models, APIs, UX).
14
+ 2. **Agile Adaptability**: Features change. We use "Stories" as the unit of work. If requirements change, we write a new story or update the draft.
15
+ 3. **Single Source of Truth**: Data models, APIs, and patterns are pulled from Architecture/PRD docs, not invented on the fly.
16
+
17
+ ## Usage
18
+
19
+ ### 1. Planning (Context Engineering)
20
+ Before implementing any feature, you must create a **User Story** that engineers the context for the developer.
21
+
22
+ ```bash
23
+ # Run the context engineering task
24
+ @agile-management/tasks/create-story
25
+ ```
26
+
27
+ ### 2. Implementation
28
+ Once a story is status `Draft` or `Approved`, it is handed to a Developer Agent (or you acting as one). The Developer Agent simply follows the "Dev Notes" and "Tasks" in the story.
29
+
30
+ ### 3. Architecture First
31
+ This skill relies on having documentation to pull context from.
32
+ - `docs/architecture/tech-stack.md`
33
+ - `docs/architecture/unified-project-structure.md`
34
+ - `docs/data-models.md`, etc.
35
+
36
+ *If these do not exist, the first task is to create them.*
37
+
38
+ ## The Workflow
39
+
40
+ 1. **Brainstorm**: Use `brainstorming` skill to define the features for the next Epic/Sprint.
41
+ 2. **Engineer Context**: Use `create-story` task to prepare the granular `story.md`.
42
+ 3. **Implement**: Execute the story tasks.
43
+ 4. **Review**: Verify against Acceptance Criteria.
44
+
45
+ ## Roles
46
+
47
+ - **Scrum Master (Context Engineer)**: You (the agent) when running `create-story`. Your job is to be rigorous, citing sources, and ensuring the "Developer" has everything they need.
48
+ - **Developer**: You (the agent) when implementing. You are "dumb" in the sense that you follow the story and architecture exactly without inventing new patterns.
@@ -0,0 +1,48 @@
1
+ <!-- Based on BMAD™ Core create-next-story task -->
2
+
3
+ # Create User Story (Context Engineering)
4
+
5
+ ## Purpose
6
+ To prepare a comprehensive, self-contained, and actionable story file. This task ensures the story is enriched with all necessary technical context, requirements, and acceptance criteria, making it ready for efficient implementation by a Developer Agent.
7
+
8
+ ## Prerequisite Check
9
+ 1. **Docs Existence**: Check if `docs/architecture` exists. If not, STOP and suggest creating `tech-stack.md` and `project-structure.md` first.
10
+ 2. **Epic/Features**: Have a clear idea of what feature (Epic) this story belongs to.
11
+
12
+ ## Steps
13
+
14
+ ### 1. Gather Requirements
15
+ - Analyze the user's request or the PRD/Epic file to extract the **User Story Statement** (As a... I want... So that...) and **Acceptance Criteria (AC)**.
16
+ - *Strict Rule*: If AC is vague, ask the user to clarify. "Fast" is not an AC; "Loads in < 200ms" is.
17
+
18
+ ### 2. Gather Architecture Context (The Engineering Part)
19
+ You must read the project's architecture documentation to find *existing* patterns to reuse.
20
+ - **Data Models**: Read `docs/data-models.md` or schema files. Which models are involved?
21
+ - **APIs**: Read `docs/api-spec.md` or route files. Which endpoints are needed?
22
+ - **UI/UX**: Read `docs/design-system.md` or components. Which components to use?
23
+
24
+ **CRITICAL**: You must Cite your sources. Example: `[Source: docs/data-models.md#User]`
25
+
26
+ ### 3. Populate Story
27
+ Create a new file `docs/stories/[epic-number].[story-number].[short-title].md` using the template below.
28
+
29
+ **Template Location**: `.agent/skills/agile-management/templates/story.md`
30
+
31
+ ### 4. Dev Notes Section (The "Dumb Agent" Enabler)
32
+ In the `Dev Notes` section of the story, you must write:
33
+ - **Exact file paths** to create/modify.
34
+ - **Exact variable names** or database columns (from gathered context).
35
+ - **Pseudo-code** or logic flow if complex.
36
+ - **Testing Strategy**: How to verify this specific story.
37
+
38
+ *Goal*: The Developer Agent should generally **not** need to look at other files. All context is here.
39
+
40
+ ### 5. Final Review
41
+ - [ ] Does the story have a `Status: Draft`?
42
+ - [ ] Are all Acceptance Criteria testable?
43
+ - [ ] Are there `Dev Notes` with specific technical details?
44
+ - [ ] Did you avoid inventing new architecture patterns (hallucination)?
45
+
46
+ ## Output
47
+ - The created `.md` file path.
48
+ - A summary of the technical context found.
@@ -0,0 +1,44 @@
1
+ # Story {{epic_num}}.{{story_num}}: {{story_title}}
2
+
3
+ **Status**: Draft
4
+ **Role**: Scrum Master / Context Engineer
5
+
6
+ ## 1. User Story
7
+ **As a** {{role}}
8
+ **I want** {{action}}
9
+ **So that** {{benefit}}
10
+
11
+ ## 2. Acceptance Criteria
12
+ 1. [ ] {{criteria_1}}
13
+ 2. [ ] {{criteria_2}}
14
+ 3. [ ] ...
15
+
16
+ ## 3. Technical Context (Dev Notes)
17
+ *Context Engineered from Architecture & PRD. Developer: Do not deviate without approval.*
18
+
19
+ ### Data Models
20
+ - {{model_name}}: {{details}} [Source: {{source_file}}]
21
+
22
+ ### API Endpoints
23
+ - {{method}} {{path}}: {{description}} [Source: {{source_file}}]
24
+
25
+ ### UI/Components
26
+ - {{component_name}}: {{usage_instructions}} [Source: {{source_file}}]
27
+
28
+ ### File Locations
29
+ - New: `src/features/...`
30
+ - Modify: `src/components/...`
31
+
32
+ ## 4. Implementation Tasks
33
+ - [ ] **Task 1**: {{task_description}}
34
+ - [ ] Subtask: {{subtask_details}}
35
+ - [ ] **Task 2**: {{task_description}}
36
+ - [ ] Subtask: {{subtask_details}}
37
+ - [ ] **Task 3**: Write Unit/Integration Tests
38
+
39
+ ## 5. Testing Strategy
40
+ - **Unit Tests**: {{unit_test_plan}}
41
+ - **Manual Verification**: {{manual_verification_steps}}
42
+
43
+ ## 6. Questions / Risks
44
+ - {{question_or_risk}}
package/README.md ADDED
@@ -0,0 +1,46 @@
1
+ # 🚀 Antigravity Init
2
+
3
+ **The ultimate agentic coding toolkit scaffolder.**
4
+
5
+ Instantly supercharge any project with the **Antigravity** agentic framework. This tool installs the latest autonomous coding agents, skills, rules, and workflows directly into your project.
6
+
7
+ ## ✨ Features
8
+
9
+ * **⚡ Instant Setup**: One command to scaffold the entire Antigravity `.agent` configuration.
10
+ * **🤖 AI Agents**: Deploys specialized agents (Architect, Planner, Code Reviewer, Security Auditor, etc.).
11
+ * **🧠 Skills Library**: Installs a rich library of skills (Brainstorming, TDD, Git Workflows, etc.).
12
+ * **🛡️ Rules & Workflows**: Enforces coding standards and provides ready-to-use agentic workflows.
13
+ * **🔄 Smart Updates**: Use the same command to update your existing configuration to the latest version.
14
+
15
+ ## 📦 Usage
16
+
17
+ You don't need to install anything globally. Just run the initialization command in your project root:
18
+
19
+ ### Standard Usage (Recommended)
20
+ ```bash
21
+ npx antigravity-init
22
+ ```
23
+
24
+ ### Using the Short Alias
25
+ If you prefer the shorter command `ag-init`, you must specify the package name:
26
+ ```bash
27
+ npx -p antigravity-init ag-init
28
+ ```
29
+
30
+ ## 🛠️ What it does
31
+
32
+ Running the command will:
33
+ 1. **Download** the latest `antigravity-init` package.
34
+ 2. **Copy/Update** the following directories in your current folder:
35
+ * `/.agent` - Contains all agent definitions, skills, and workflows.
36
+ * `/.shared` - Shared utilities and configurations.
37
+ 3. **Overwrite** existing configuration files to ensure you have the latest standards (Force Update).
38
+
39
+ ## ⚠️ Notes
40
+
41
+ * **Force Update**: This tool is designed to keep your agentic config in sync with the source of truth. Running it on an existing project **will overwrite** files in `.agent` and `.shared`.
42
+ * **Project Structure**: Your project code remains untouched. Only the Antigravity agent configuration directories are modified.
43
+
44
+ ## 📄 License
45
+
46
+ ISC
package/bin/cli.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
 
3
3
  const fs = require('fs-extra');
4
4
  const path = require('path');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antigravity-init",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "The Antigravity project scaffolder and updater.",
5
5
  "main": "bin/cli.js",
6
6
  "bin": {
@@ -27,4 +27,4 @@
27
27
  "fs-extra": "^11.2.0",
28
28
  "picocolors": "^1.0.0"
29
29
  }
30
- }
30
+ }