the-agency-cli 1.1.1__tar.gz

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 (44) hide show
  1. the_agency_cli-1.1.1/MANIFEST.in +1 -0
  2. the_agency_cli-1.1.1/PKG-INFO +138 -0
  3. the_agency_cli-1.1.1/README.md +121 -0
  4. the_agency_cli-1.1.1/agency.py +458 -0
  5. the_agency_cli-1.1.1/pyproject.toml +35 -0
  6. the_agency_cli-1.1.1/setup.cfg +4 -0
  7. the_agency_cli-1.1.1/skills/application_security_engineer/SKILL.md +20 -0
  8. the_agency_cli-1.1.1/skills/backend_developer/SKILL.md +25 -0
  9. the_agency_cli-1.1.1/skills/chief_information_security_officer/SKILL.md +24 -0
  10. the_agency_cli-1.1.1/skills/chief_test_officer/SKILL.md +28 -0
  11. the_agency_cli-1.1.1/skills/cmo_analyst/SKILL.md +41 -0
  12. the_agency_cli-1.1.1/skills/coder/SKILL.md +22 -0
  13. the_agency_cli-1.1.1/skills/content_copywriter/SKILL.md +20 -0
  14. the_agency_cli-1.1.1/skills/customer_support_triage/SKILL.md +22 -0
  15. the_agency_cli-1.1.1/skills/data_scientist/SKILL.md +19 -0
  16. the_agency_cli-1.1.1/skills/e2e_journey_tester/SKILL.md +20 -0
  17. the_agency_cli-1.1.1/skills/frontend_developer/SKILL.md +23 -0
  18. the_agency_cli-1.1.1/skills/graph_database_architect/SKILL.md +20 -0
  19. the_agency_cli-1.1.1/skills/head_of_marketing/SKILL.md +20 -0
  20. the_agency_cli-1.1.1/skills/historian/SKILL.md +20 -0
  21. the_agency_cli-1.1.1/skills/makefile_orchestrator/SKILL.md +21 -0
  22. the_agency_cli-1.1.1/skills/product_marketing_manager/SKILL.md +20 -0
  23. the_agency_cli-1.1.1/skills/project_manager/SKILL.md +31 -0
  24. the_agency_cli-1.1.1/skills/prompt_engineer/SKILL.md +20 -0
  25. the_agency_cli-1.1.1/skills/qa_automation_engineer/SKILL.md +21 -0
  26. the_agency_cli-1.1.1/skills/relational_dba/SKILL.md +20 -0
  27. the_agency_cli-1.1.1/skills/security_operations_analyst/SKILL.md +20 -0
  28. the_agency_cli-1.1.1/skills/skill_creator/SKILL.md +25 -0
  29. the_agency_cli-1.1.1/skills/solution_architect/SKILL.md +26 -0
  30. the_agency_cli-1.1.1/skills/sre_cloud_architect/SKILL.md +19 -0
  31. the_agency_cli-1.1.1/skills/ssdlc_manager/SKILL.md +22 -0
  32. the_agency_cli-1.1.1/skills/technical_writer/SKILL.md +19 -0
  33. the_agency_cli-1.1.1/skills/test_data_manager/SKILL.md +19 -0
  34. the_agency_cli-1.1.1/skills/test_engineer/SKILL.md +19 -0
  35. the_agency_cli-1.1.1/skills/tool_smith/SKILL.md +20 -0
  36. the_agency_cli-1.1.1/skills/ui_qa_engineer/SKILL.md +20 -0
  37. the_agency_cli-1.1.1/skills/ux_ui_designer/SKILL.md +19 -0
  38. the_agency_cli-1.1.1/skills/workspace_manager/SKILL.md +21 -0
  39. the_agency_cli-1.1.1/the_agency_cli.egg-info/PKG-INFO +138 -0
  40. the_agency_cli-1.1.1/the_agency_cli.egg-info/SOURCES.txt +42 -0
  41. the_agency_cli-1.1.1/the_agency_cli.egg-info/dependency_links.txt +1 -0
  42. the_agency_cli-1.1.1/the_agency_cli.egg-info/entry_points.txt +2 -0
  43. the_agency_cli-1.1.1/the_agency_cli.egg-info/requires.txt +3 -0
  44. the_agency_cli-1.1.1/the_agency_cli.egg-info/top_level.txt +1 -0
@@ -0,0 +1 @@
1
+ recursive-include skills *.md
@@ -0,0 +1,138 @@
1
+ Metadata-Version: 2.4
2
+ Name: the-agency-cli
3
+ Version: 1.1.1
4
+ Summary: The Virtual IT Team in Your Pocket. A framework of 28 AI Personas for enterprise software development.
5
+ Author: flegare
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/flegare/the_agency
8
+ Project-URL: Issues, https://github.com/flegare/the_agency/issues
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Operating System :: OS Independent
12
+ Requires-Python: >=3.9
13
+ Description-Content-Type: text/markdown
14
+ Requires-Dist: rich>=13.0.0
15
+ Requires-Dist: questionary>=2.0.0
16
+ Requires-Dist: requests>=2.31.0
17
+
18
+ # The Agency
19
+
20
+ ## The Virtual IT Team in Your Pocket 🏢
21
+
22
+ "The Agency" is an open-source framework that models a complete, 28-person Enterprise Software Development Organization using specialized AI Personas (Skills).
23
+
24
+ Unlike traditional orchestration frameworks (like CrewAI, AutoGen, or LangGraph) that just provide the *code* to connect agents, `The Agency` provides the actual **Domain Knowledge, Organizational Chart, and Standard Operating Procedures (SOPs)** required to build robust software.
25
+
26
+ Simply inject these personas into your favorite AI tool (Cursor, Roo Code, Gemini CLI, or a local instance of Ollama) and watch the Virtual IT Team design, develop, secure, test, and market your application.
27
+
28
+ ---
29
+
30
+ ## 👥 The Organization Chart
31
+
32
+ The Virtual IT Team comprises specialized "Skills", mapped precisely to a modern tech enterprise:
33
+
34
+ - **Management:** `project_manager`, `historian`, `workspace_manager`
35
+ - **Architecture:** `solution_architect`, `cmo_analyst` (Digital Twin Owner), `sre_cloud_architect`
36
+ - **Development:** `backend_developer`, `frontend_developer`, `coder`
37
+ - **Design:** `ux_ui_designer`
38
+ - **Data Engineering:** `relational_dba`, `graph_database_architect`, `data_scientist`
39
+ - **Quality Assurance:** `chief_test_officer`, `qa_automation_engineer`, `test_engineer`, `e2e_journey_tester`, `test_data_manager`, `ui_qa_engineer`
40
+ - **Security:** `chief_information_security_officer`, `application_security_engineer`, `security_operations_analyst`
41
+ - **Deployment:** `ssdlc_manager`
42
+ - **Management & Marketing:** `head_of_marketing`, `product_marketing_manager`, `content_copywriter`, `technical_writer`
43
+ - **Support & AI Ops:** `customer_support_triage`, `prompt_engineer`, `makefile_orchestrator`
44
+ - **Meta-Skills (The Creators):** `skill_creator` (Organizational Architect), `tool_smith` (Internal Tooling)
45
+
46
+ *(Read each `SKILL.md` inside the `skills/` folder to review the specific heuristics and constraints of that role).*
47
+
48
+ ---
49
+
50
+ ## 🚀 How to Use "The Agency"
51
+
52
+ Because The Agency defines *logic* and *processes* rather than hard-coded python scripts, you can use it conceptually within any environment.
53
+
54
+ ### 1. The Global Agency CLI (Recommended)
55
+ The most powerful way to use "The Agency" is to install it globally on your system path. This allows you to spawn any persona directly into whichever project directory you are currently working in.
56
+
57
+ Because "The Agency" is written in Python, the recommended way to install it globally without breaking your system packages is via `pipx`.
58
+
59
+ ```bash
60
+ # Install the CLI globally in an isolated environment
61
+ pipx install the-agency-cli
62
+
63
+ # Navigate to any of your completely separate projects
64
+ cd /my/super/secret/startup/
65
+
66
+ # Launch the interactive CLI right there
67
+ agency
68
+ ```
69
+
70
+ The CLI will guide you through:
71
+ - **Initialize & Configure:** Automatically scans for AI assistants like Cursor (`.cursorrules`), Gemini (`.gemini`), Roo Code (`.clinerules`), and Claude (`CLAUDE.md`). It installs the Agency skills into your `.agency/` folder and injects specialized system logic into your AI tool's project memory so they know *how* to use the skills!
72
+ - **Browse Skills:** View the organizational chart and understand what every department does.
73
+ - **Run Skill:** Choose a specific skill, paste a task, and the agent will immediately context-switch into your codebase to start working.
74
+
75
+ ### 2. In Premium Agentic Tools (Cursor, Roo Code, Copilot Workspaces)
76
+ Point your AI assistant at the specific `SKILL.md` you want it to embody.
77
+ For example, tell Cursor: *"Embody the role defined in `skills/frontend_developer/SKILL.md` and complete this task."*
78
+
79
+ ### 3. Pure Makefiles & Terminal Piping
80
+ If you prefer raw execution, you can completely ignore `.agency.py` and run sequential generation using the `Makefile` pattern.
81
+
82
+ **See the example `Makefile` in the root directory for a proof-of-concept pipeline.**
83
+
84
+ ```bash
85
+ # Example: Generate an application schema using a local 8B model
86
+ make build-schema
87
+ ```
88
+
89
+ ### 4. Supercharging Skills with Tools
90
+ While skills have "Brains", they need "Hands" to affect the local machine. By installing common CLI tools globally on your terminal (e.g., `semgrep`, `docker`, `playwright`), you empower the agents to use those tools automatically via `run_command` capabilities.
91
+
92
+ **[Read the Recommended Tools Architecture](docs/architecture/recommended_tools.md)** to see which open-source CLIs pair best with which Virtual Employee. If a tool you need doesn't exist, spawn the `tool_smith` meta-skill to write a custom wrapper!
93
+
94
+ ---
95
+
96
+ ## 📦 Integrating into an Existing Project
97
+
98
+ If you are not starting from scratch, you can easily drop "The Agency" into a mature, existing repository.
99
+
100
+ **1. Call the `agency` command and select "Initialize"**
101
+ The `agency init` command does two massive things:
102
+ - It automatically configures whatever native AI tool you use (Cursor, Cline, Gemini, Aider) with the Agency's context and instructions.
103
+ - It copies the entire `skills/` directory into your `.agency/` folder.
104
+
105
+ **2. Initialize the "Digital Twin" (The Most Important Step)**
106
+ AI agents hallucinate when they don't know your existing architecture. Before asking the Agency to write new code for your existing app, you must map your current state. From the `agency` initialization menu, select **"Map Digital Twin"**:
107
+ * The `historian` reads your files to summarize the project's purpose.
108
+ * The `solution_architect` maps the `src/` hierarchy to build a system architecture.
109
+ * The `cmo_analyst` aggregates this into a master "Digital Twin" state document at `docs/cmo_state.md`.
110
+
111
+ **3. Resume Normal Operations**
112
+ Once properly mapped and configured, your native AI editor (like Cursor or Gemini) naturally understands your new virtual employees and the structure of your application. Ask your IDE directly: *"Tell the `backend_developer` to build a new auth route according to the architecture."*
113
+
114
+ ---
115
+
116
+ ## 🏗️ The Project Lifecycle
117
+
118
+ If you elect to use the full agency, follow the routing lifecycle governed by the `project_manager`:
119
+
120
+ 1. **Discovery:** `cmo_analyst` checks the system's "Digital Twin" constraints (`docs/`).
121
+ 2. **Design Blueprint:** `ux_ui_designer` maps the wireframes; `prompt_engineer` maps the LLM context flow.
122
+ 3. **Architecture:** `solution_architect` defines the data models and component structure.
123
+ 4. **Security Check:** `ciso` reviews the architecture for vulnerabilities. *(Must pass before coding).*
124
+ 5. **Implementation:** Specialized `backend_developer` and `frontend_developer` write the code.
125
+ 6. **Testing:** `chief_test_officer` coordinates unit, integration, and E2E tests.
126
+ 7. **Deployment:** `sre_cloud_architect` dictates topology, and `ssdlc_manager` routes it to production.
127
+ 8. **Launch:** The Marketing division generates go-to-market copy while the `technical_writer` builds the public APIs.
128
+
129
+ ---
130
+
131
+ ## 📜 Legacy Assets
132
+ Older, hard-coded Python SDK variants of this agentic framework have been archived in the `legacy/` folder for historical reference. The future of The Agency is agnostic, prompt-driven markdown injected into powerful local or cloud execution layers.
133
+
134
+ ## Contributing
135
+ Want to add a new role to the IT Team?
136
+ 1. Copy an existing `SKILL.md`.
137
+ 2. Define their Core Responsibilities and Workflow Integration.
138
+ 3. Submit a PR.
@@ -0,0 +1,121 @@
1
+ # The Agency
2
+
3
+ ## The Virtual IT Team in Your Pocket 🏢
4
+
5
+ "The Agency" is an open-source framework that models a complete, 28-person Enterprise Software Development Organization using specialized AI Personas (Skills).
6
+
7
+ Unlike traditional orchestration frameworks (like CrewAI, AutoGen, or LangGraph) that just provide the *code* to connect agents, `The Agency` provides the actual **Domain Knowledge, Organizational Chart, and Standard Operating Procedures (SOPs)** required to build robust software.
8
+
9
+ Simply inject these personas into your favorite AI tool (Cursor, Roo Code, Gemini CLI, or a local instance of Ollama) and watch the Virtual IT Team design, develop, secure, test, and market your application.
10
+
11
+ ---
12
+
13
+ ## 👥 The Organization Chart
14
+
15
+ The Virtual IT Team comprises specialized "Skills", mapped precisely to a modern tech enterprise:
16
+
17
+ - **Management:** `project_manager`, `historian`, `workspace_manager`
18
+ - **Architecture:** `solution_architect`, `cmo_analyst` (Digital Twin Owner), `sre_cloud_architect`
19
+ - **Development:** `backend_developer`, `frontend_developer`, `coder`
20
+ - **Design:** `ux_ui_designer`
21
+ - **Data Engineering:** `relational_dba`, `graph_database_architect`, `data_scientist`
22
+ - **Quality Assurance:** `chief_test_officer`, `qa_automation_engineer`, `test_engineer`, `e2e_journey_tester`, `test_data_manager`, `ui_qa_engineer`
23
+ - **Security:** `chief_information_security_officer`, `application_security_engineer`, `security_operations_analyst`
24
+ - **Deployment:** `ssdlc_manager`
25
+ - **Management & Marketing:** `head_of_marketing`, `product_marketing_manager`, `content_copywriter`, `technical_writer`
26
+ - **Support & AI Ops:** `customer_support_triage`, `prompt_engineer`, `makefile_orchestrator`
27
+ - **Meta-Skills (The Creators):** `skill_creator` (Organizational Architect), `tool_smith` (Internal Tooling)
28
+
29
+ *(Read each `SKILL.md` inside the `skills/` folder to review the specific heuristics and constraints of that role).*
30
+
31
+ ---
32
+
33
+ ## 🚀 How to Use "The Agency"
34
+
35
+ Because The Agency defines *logic* and *processes* rather than hard-coded python scripts, you can use it conceptually within any environment.
36
+
37
+ ### 1. The Global Agency CLI (Recommended)
38
+ The most powerful way to use "The Agency" is to install it globally on your system path. This allows you to spawn any persona directly into whichever project directory you are currently working in.
39
+
40
+ Because "The Agency" is written in Python, the recommended way to install it globally without breaking your system packages is via `pipx`.
41
+
42
+ ```bash
43
+ # Install the CLI globally in an isolated environment
44
+ pipx install the-agency-cli
45
+
46
+ # Navigate to any of your completely separate projects
47
+ cd /my/super/secret/startup/
48
+
49
+ # Launch the interactive CLI right there
50
+ agency
51
+ ```
52
+
53
+ The CLI will guide you through:
54
+ - **Initialize & Configure:** Automatically scans for AI assistants like Cursor (`.cursorrules`), Gemini (`.gemini`), Roo Code (`.clinerules`), and Claude (`CLAUDE.md`). It installs the Agency skills into your `.agency/` folder and injects specialized system logic into your AI tool's project memory so they know *how* to use the skills!
55
+ - **Browse Skills:** View the organizational chart and understand what every department does.
56
+ - **Run Skill:** Choose a specific skill, paste a task, and the agent will immediately context-switch into your codebase to start working.
57
+
58
+ ### 2. In Premium Agentic Tools (Cursor, Roo Code, Copilot Workspaces)
59
+ Point your AI assistant at the specific `SKILL.md` you want it to embody.
60
+ For example, tell Cursor: *"Embody the role defined in `skills/frontend_developer/SKILL.md` and complete this task."*
61
+
62
+ ### 3. Pure Makefiles & Terminal Piping
63
+ If you prefer raw execution, you can completely ignore `.agency.py` and run sequential generation using the `Makefile` pattern.
64
+
65
+ **See the example `Makefile` in the root directory for a proof-of-concept pipeline.**
66
+
67
+ ```bash
68
+ # Example: Generate an application schema using a local 8B model
69
+ make build-schema
70
+ ```
71
+
72
+ ### 4. Supercharging Skills with Tools
73
+ While skills have "Brains", they need "Hands" to affect the local machine. By installing common CLI tools globally on your terminal (e.g., `semgrep`, `docker`, `playwright`), you empower the agents to use those tools automatically via `run_command` capabilities.
74
+
75
+ **[Read the Recommended Tools Architecture](docs/architecture/recommended_tools.md)** to see which open-source CLIs pair best with which Virtual Employee. If a tool you need doesn't exist, spawn the `tool_smith` meta-skill to write a custom wrapper!
76
+
77
+ ---
78
+
79
+ ## 📦 Integrating into an Existing Project
80
+
81
+ If you are not starting from scratch, you can easily drop "The Agency" into a mature, existing repository.
82
+
83
+ **1. Call the `agency` command and select "Initialize"**
84
+ The `agency init` command does two massive things:
85
+ - It automatically configures whatever native AI tool you use (Cursor, Cline, Gemini, Aider) with the Agency's context and instructions.
86
+ - It copies the entire `skills/` directory into your `.agency/` folder.
87
+
88
+ **2. Initialize the "Digital Twin" (The Most Important Step)**
89
+ AI agents hallucinate when they don't know your existing architecture. Before asking the Agency to write new code for your existing app, you must map your current state. From the `agency` initialization menu, select **"Map Digital Twin"**:
90
+ * The `historian` reads your files to summarize the project's purpose.
91
+ * The `solution_architect` maps the `src/` hierarchy to build a system architecture.
92
+ * The `cmo_analyst` aggregates this into a master "Digital Twin" state document at `docs/cmo_state.md`.
93
+
94
+ **3. Resume Normal Operations**
95
+ Once properly mapped and configured, your native AI editor (like Cursor or Gemini) naturally understands your new virtual employees and the structure of your application. Ask your IDE directly: *"Tell the `backend_developer` to build a new auth route according to the architecture."*
96
+
97
+ ---
98
+
99
+ ## 🏗️ The Project Lifecycle
100
+
101
+ If you elect to use the full agency, follow the routing lifecycle governed by the `project_manager`:
102
+
103
+ 1. **Discovery:** `cmo_analyst` checks the system's "Digital Twin" constraints (`docs/`).
104
+ 2. **Design Blueprint:** `ux_ui_designer` maps the wireframes; `prompt_engineer` maps the LLM context flow.
105
+ 3. **Architecture:** `solution_architect` defines the data models and component structure.
106
+ 4. **Security Check:** `ciso` reviews the architecture for vulnerabilities. *(Must pass before coding).*
107
+ 5. **Implementation:** Specialized `backend_developer` and `frontend_developer` write the code.
108
+ 6. **Testing:** `chief_test_officer` coordinates unit, integration, and E2E tests.
109
+ 7. **Deployment:** `sre_cloud_architect` dictates topology, and `ssdlc_manager` routes it to production.
110
+ 8. **Launch:** The Marketing division generates go-to-market copy while the `technical_writer` builds the public APIs.
111
+
112
+ ---
113
+
114
+ ## 📜 Legacy Assets
115
+ Older, hard-coded Python SDK variants of this agentic framework have been archived in the `legacy/` folder for historical reference. The future of The Agency is agnostic, prompt-driven markdown injected into powerful local or cloud execution layers.
116
+
117
+ ## Contributing
118
+ Want to add a new role to the IT Team?
119
+ 1. Copy an existing `SKILL.md`.
120
+ 2. Define their Core Responsibilities and Workflow Integration.
121
+ 3. Submit a PR.