@konductro/codex-plugin 2.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.
@@ -0,0 +1,96 @@
1
+ ---
2
+ name: konductro-decompose
3
+ description: Decompose a Konductro story into technical tasks. Use when assigned to break down a business story into implementable tasks by exploring the codebase.
4
+ ---
5
+
6
+ # Konductro Story Decomposition
7
+
8
+ You are decomposing a business-level story into technical tasks for the Konductro delivery platform. Each task you produce will be picked up by a developer or agent, so tasks must be specific, implementable, and self-contained.
9
+
10
+ ## Workflow
11
+
12
+ ### Step 1: Load Your Assignments
13
+
14
+ Call `list_decomposition_tasks` to see which stories are assigned to you for decomposition. Present the list to the user and ask which story to work on.
15
+
16
+ ### Step 2: Load Context
17
+
18
+ Call `get_decomposition_context` with the story ID. This loads:
19
+ - The story details (title, description, acceptance criteria, complexity)
20
+ - Approved requirements and architecture documents
21
+ - Repository information with profiles
22
+ - Existing tasks (if any were already created)
23
+ - Sibling stories for cross-story context
24
+
25
+ Share a summary with the user and confirm you're ready to begin.
26
+
27
+ ### Step 3: Explore the Codebase
28
+
29
+ The user has the target repository/repositories cloned locally. Use fast repository search and focused file reads to understand:
30
+
31
+ - **Where the change lands** — which modules, services, or components are affected
32
+ - **Existing patterns** — how similar features are already built (routes, services, components)
33
+ - **Data model** — relevant database tables, entities, relationships
34
+ - **API surface** — existing endpoints, request/response shapes
35
+ - **Test patterns** — how tests are structured for this area of the codebase
36
+ - **Dependencies** — what the affected code depends on and what depends on it
37
+
38
+ Focus your exploration on what's relevant to the story. Don't scan the entire codebase.
39
+
40
+ ### Step 4: Plan the Decomposition
41
+
42
+ Based on the story requirements and your codebase understanding, plan the tasks. Consider:
43
+
44
+ - **Execution order** — what needs to be built first (e.g., schema before API before UI)
45
+ - **Task boundaries** — each task should be a single PR, touching one concern
46
+ - **Repository assignment** — which repo does each task belong to
47
+ - **Task type** — `api_node`, `api_java`, `ui_component`, `android`, `ios`, `infra`
48
+ - **Dependencies between tasks** — task 2 may depend on task 1's API
49
+
50
+ Present your proposed decomposition to the user before submitting.
51
+
52
+ ### Step 5: Define Each Task (Developer Brief)
53
+
54
+ For each task, produce the full developer brief — this is the complete implementation guide that a developer or agent will use. Include ALL of these fields:
55
+
56
+ 1. **title** — short, action-oriented (e.g., "Add sprint.projectId column and migration")
57
+ 2. **description** — technical description of what to build and how, referencing specific files, patterns, and APIs
58
+ 3. **repositoryId** — from the context (the repo this task targets)
59
+ 4. **type** — `api_node`, `api_java`, `ui_component`, `android`, `ios`, `infra`
60
+ 5. **acceptanceCriteria** — specific, testable criteria for this task
61
+ 6. **architecturalNotes** — implementation hints, patterns to follow, gotchas
62
+ 7. **componentPath** — primary file or directory being changed
63
+ 8. **order** — execution order (0-based, tasks with same order can be parallel)
64
+ 9. **filesToCreate** — list of new files that need to be created
65
+ 10. **filesToModify** — list of `{ path, change }` objects describing what to modify in existing files
66
+ 11. **implementationSteps** — ordered step-by-step implementation guide
67
+ 12. **outOfScope** — what is explicitly NOT included in this task
68
+
69
+ ### Step 6: Submit Tasks One by One
70
+
71
+ After the user approves the decomposition, submit each task individually by calling `submit_decomposition_task` once per task. This keeps payloads small and generates the developer brief for each task as it's created.
72
+
73
+ After ALL tasks are submitted, call `complete_decomposition` with:
74
+ - The story ID
75
+ - A conversation summary capturing key decisions and rationale
76
+
77
+ Confirm success and let the user know the tasks are available in Konductro.
78
+
79
+ ## Task Decomposition Guidelines
80
+
81
+ - **Right-size tasks** — each task should be completable in a single focused session. Not too large (multi-day), not too small (trivial rename).
82
+ - **Self-contained** — a task should make sense on its own. Include enough context in the description that someone unfamiliar with the discussion can implement it.
83
+ - **Backend before frontend** — schema/migration tasks first, then API, then UI.
84
+ - **One repo per task** — don't create cross-repo tasks.
85
+ - **Reference specific code** — mention file paths, function names, existing patterns to follow.
86
+ - **Include test expectations** — note what tests should be added or updated.
87
+ - **Complete developer brief** — every task must include filesToCreate, filesToModify, implementationSteps, and outOfScope. This is the brief the developer/agent will work from.
88
+
89
+ ## Important Rules
90
+
91
+ - Always start by loading tasks from Konductro — don't skip this step
92
+ - Explore the ACTUAL codebase — don't assume or hallucinate file contents
93
+ - Ask the user questions about business logic, edge cases, or priorities
94
+ - Present the full task list for user review before submitting
95
+ - Submit tasks ONE AT A TIME using `submit_decomposition_task`, then call `complete_decomposition`
96
+ - The conversation summary should explain WHY you decomposed it this way
@@ -0,0 +1,56 @@
1
+ ---
2
+ name: konductro-find-prototype
3
+ description: Find and download UX prototypes for the current project. Use when a developer wants to reference the approved prototype while building features.
4
+ ---
5
+
6
+ # Find Project Prototype
7
+
8
+ You are helping a developer find and download the UX prototype for their current project so they can reference it while building features.
9
+
10
+ ## Workflow
11
+
12
+ ### Step 1: Get the git remote URL
13
+
14
+ Run `git remote get-url origin` to get the repository's remote URL.
15
+
16
+ ### Step 2: Find prototypes
17
+
18
+ Call `find_project_prototypes` with the git remote URL. This matches the repo to a Konductro project and returns any published prototypes with their file URLs.
19
+
20
+ If no prototypes are found, let the user know and stop.
21
+
22
+ ### Step 3: Present the results
23
+
24
+ Show the user what was found:
25
+ - Engagement name and version
26
+ - List of pages with their URLs
27
+
28
+ Ask if they want to download the files locally.
29
+
30
+ ### Step 4: Download
31
+
32
+ If the user wants to download, create a `.konductro/prototype/` directory and download each file using `curl`:
33
+
34
+ ```bash
35
+ mkdir -p .konductro/prototype
36
+ curl -o .konductro/prototype/index.html "<url>"
37
+ curl -o .konductro/prototype/dashboard.html "<url>"
38
+ # etc.
39
+ ```
40
+
41
+ Use `.konductro/prototype/` (not `./prototype/`) to avoid clashing with the prototype build skill's output directory.
42
+
43
+ ### Step 5: Confirm
44
+
45
+ Let the user know the files are downloaded and they can open them in their browser:
46
+ ```
47
+ open .konductro/prototype/index.html
48
+ ```
49
+
50
+ ## Rules
51
+
52
+ - Always detect the git remote automatically — don't ask the user for it
53
+ - Use `.konductro/prototype/` as the download directory
54
+ - The files are public S3 URLs — no credentials needed
55
+ - If multiple prototypes exist, let the user pick which one to download
56
+ - Don't modify the prototype files — they're reference material
@@ -0,0 +1,51 @@
1
+ ---
2
+ name: konductro-profile-repository
3
+ description: Scan the current repository and submit its profile to Konductro. Use when you want to analyse and register a codebase's tech stack, dependencies, APIs, and architecture.
4
+ ---
5
+
6
+ # Konductro Repository Profiling
7
+
8
+ You are profiling a codebase to submit its technical profile to the Konductro delivery platform. This profile helps Konductro understand the repository for planning, estimation, and ticket generation.
9
+
10
+ ## Workflow
11
+
12
+ ### Step 1: Identify the Repository
13
+
14
+ Run `git remote get-url origin` to get the repository URL. This will be used to match the repo in Konductro.
15
+
16
+ ### Step 2: Scan the Codebase
17
+
18
+ Explore the repository to build a comprehensive profile:
19
+
20
+ - **Project structure** — folder layout, monorepo or single project
21
+ - **Tech stack** — check package.json, pom.xml, build.gradle, requirements.txt, go.mod, etc.
22
+ - **Framework** — Angular, React, Spring Boot, Express, Fastify, Django, etc.
23
+ - **API endpoints** — scan routes, controllers, handlers
24
+ - **Dependencies** — key libraries with versions
25
+ - **Database** — schemas, migrations, ORM config
26
+ - **Build tools** — webpack, vite, gradle, maven, docker
27
+ - **Test framework** — jest, mocha, junit, pytest, etc.
28
+
29
+ ### Step 3: Determine Role and Domain
30
+
31
+ Based on the codebase, determine:
32
+ - **Role**: Is this an application, library, service, or infrastructure repo?
33
+ - **Domain**: What business domain does it own? (e.g., payments, auth, booking, notifications)
34
+
35
+ ### Step 4: Submit the Profile
36
+
37
+ Call `profile_repository` with:
38
+ - The git remote URL
39
+ - Role and domain
40
+ - API endpoints found
41
+ - Key dependencies
42
+ - Any events produced or consumed (message queues, webhooks, etc.)
43
+
44
+ Present a summary to the user before submitting and ask for confirmation.
45
+
46
+ ## Important Rules
47
+
48
+ - Scan the ACTUAL codebase — don't guess
49
+ - Focus on the key dependencies and APIs, not every single package
50
+ - Be specific about versions where possible
51
+ - If you can't determine the domain, ask the user
@@ -0,0 +1,91 @@
1
+ ---
2
+ name: konductro-prototype
3
+ description: Build a UX prototype for a Konductro engagement. Loads design system and approved documents, generates multi-page HTML locally, publishes to S3, and submits back to Konductro.
4
+ ---
5
+
6
+ # Konductro Prototype Build
7
+
8
+ You are building a multi-page HTML prototype for a UX engagement on the Konductro platform. The prototype uses the project's design system (tokens and components) and implements the screens defined in the approved feature matrix.
9
+
10
+ ## Workflow
11
+
12
+ ### Step 1: Load Your Assignments
13
+
14
+ Call `list_prototype_tasks` to see which prototype tasks are assigned to you. Present the list to the user and ask which one to work on.
15
+
16
+ ### Step 2: Load Context
17
+
18
+ Call `get_prototype_context` with the job ID. This loads:
19
+ - The UX engagement details (name, description)
20
+ - The design system (tokens: colours, typography, spacing; components: buttons, cards, forms, etc.)
21
+ - Approved documents from earlier UX steps (hypotheses, personas, feature matrix)
22
+ - The preview HTML from the Design Studio step (locked visual direction)
23
+ - S3 configuration for publishing
24
+
25
+ Review all the context carefully. The design system tokens and components define exactly how the prototype should look. The feature matrix defines what screens to build. The preview HTML shows the visual direction that was already approved.
26
+
27
+ ### Step 3: Start Work
28
+
29
+ Call `start_prototype_work` with the job ID to mark the task as in progress.
30
+
31
+ ### Step 4: Build the Prototype
32
+
33
+ Create a `./prototype/` directory in the current working directory. Build multi-page HTML files:
34
+
35
+ **Structure:**
36
+ - `index.html` — landing/home page (entry point)
37
+ - Additional pages as defined by the feature matrix (e.g., `dashboard.html`, `settings.html`, `profile.html`)
38
+
39
+ **Design rules:**
40
+ - Use **Tailwind CSS via CDN** (`<script src="https://cdn.tailwindcss.com"></script>`)
41
+ - Use **Google Fonts** if the design system specifies typography
42
+ - Apply design system tokens directly: colours as Tailwind config overrides, spacing, border radius, shadows
43
+ - Build components exactly as defined in the design system: buttons, cards, forms, navigation, modals, tables, badges, alerts
44
+ - Every page must include consistent navigation linking to all other pages
45
+ - Pages must be fully self-contained HTML files — no external JS frameworks
46
+ - Make the prototype feel real: use realistic placeholder content, not lorem ipsum
47
+ - Responsive design — should work on desktop and tablet widths at minimum
48
+
49
+ **Quality bar:**
50
+ - The prototype should look like a real application, not a wireframe
51
+ - Use the approved preview HTML as the visual reference — match its aesthetic
52
+ - Interactive elements should have hover/focus states
53
+ - Forms should have proper labels and structure (they don't need to submit)
54
+
55
+ ### Step 5: Review with User
56
+
57
+ Let the user know the prototype is ready for review. They can open the HTML files in their browser directly from the `./prototype/` directory. Iterate based on feedback — update files as needed.
58
+
59
+ ### Step 6: Publish to S3
60
+
61
+ When the user is happy with the prototype:
62
+
63
+ 1. Call `request_upload_credentials` with the job ID to get temporary S3 credentials
64
+ 2. Upload each HTML file from `./prototype/` to S3 using the credentials:
65
+
66
+ ```bash
67
+ export AWS_ACCESS_KEY_ID=<from credentials>
68
+ export AWS_SECRET_ACCESS_KEY=<from credentials>
69
+ export AWS_SESSION_TOKEN=<from credentials>
70
+ aws s3 cp ./prototype/ s3://<bucket>/<prefix>/ --recursive --content-type "text/html" --region <region>
71
+ ```
72
+
73
+ If `aws` CLI is not available, the upload will fail. In that case, inform the user they need the AWS CLI installed, or offer to try using curl with presigned URLs as a fallback.
74
+
75
+ ### Step 7: Submit to Konductro
76
+
77
+ After uploading, call `submit_prototype` with:
78
+ - The job ID
79
+ - A `pages` array listing each uploaded file with its filename and title
80
+
81
+ This marks the task as complete and notifies the SDM.
82
+
83
+ ## Important Rules
84
+
85
+ - Always start by loading tasks from Konductro — don't skip this step
86
+ - Use the design system tokens and components faithfully — don't invent your own styles
87
+ - The preview HTML from Design Studio is the approved visual direction — match it
88
+ - Build ALL pages defined in the feature matrix, not just a subset
89
+ - Ask the user for feedback before publishing — prototypes are communication tools
90
+ - The `./prototype/` directory stays local after publish for reference
91
+ - Credentials expire in 15 minutes — request fresh ones if upload takes longer
@@ -0,0 +1,55 @@
1
+ ---
2
+ name: konductro-start-ticket
3
+ description: Pick up an assigned ticket and start work — creates branch, pushes ticket spec, updates status. Use when a developer wants to begin working on a ticket.
4
+ ---
5
+
6
+ # Start Ticket
7
+
8
+ You are helping a developer pick up and start work on a Konductro ticket.
9
+
10
+ ## Workflow
11
+
12
+ ### Step 1: List Assigned Tickets
13
+
14
+ Call `list_my_tickets` to show what's available. Focus on tickets in `assigned` or `in_sprint` status — these are ready to be picked up.
15
+
16
+ If the developer already knows which ticket they want, skip to Step 2.
17
+
18
+ ### Step 2: Load Ticket Context
19
+
20
+ Call `get_ticket_context` with the chosen ticket ID. Present a summary:
21
+ - Title and description
22
+ - Acceptance criteria
23
+ - Target repository and default base branch
24
+ - Any dependencies or architectural notes
25
+
26
+ ### Step 3: Confirm Branch Details
27
+
28
+ Ask the developer:
29
+ - **Branch from:** Show the repo's default base branch (from the context). Ask if they want to branch from somewhere else.
30
+ - **Branch name:** Show the default (`feature/{TICKET-KEY}`). Ask if they want to override it.
31
+
32
+ Most of the time the defaults are fine — don't over-prompt. A simple "I'll create `feature/MRB-15` from `dev` — good?" is enough.
33
+
34
+ ### Step 4: Start Work
35
+
36
+ Call `start_work` with the ticket ID and branch details. This will:
37
+ 1. Create the branch in ADO
38
+ 2. Push the ticket spec file to `.tickets/{KEY}.md`
39
+ 3. Set the ticket status to `in_progress`
40
+
41
+ ### Step 5: Checkout Locally
42
+
43
+ After success, tell the developer to run:
44
+ ```
45
+ git fetch && git checkout {branchName}
46
+ ```
47
+
48
+ Then offer to help them get started — explore the codebase, review the acceptance criteria against existing code, etc.
49
+
50
+ ## Rules
51
+
52
+ - Only show tickets that are assigned to the user and ready to start
53
+ - Always confirm the branch-from before calling start_work
54
+ - If start_work fails (e.g. branch already exists, ADO error), show the error clearly
55
+ - Don't skip the branch confirmation step — branching from the wrong base is hard to fix
@@ -0,0 +1,82 @@
1
+ ---
2
+ name: konductro-technical-analysis
3
+ description: Perform a technical analysis for a Konductro project phase. Use when the user wants to analyse a codebase for technical planning — examining patterns, dependencies, risks, and recommending an approach.
4
+ ---
5
+
6
+ # Konductro Technical Analysis
7
+
8
+ You are performing a technical analysis of a codebase for the Konductro delivery platform. This analysis will feed into the architecture stage and ultimately into delivery ticket generation.
9
+
10
+ ## Workflow
11
+
12
+ ### Step 1: Load Your Tasks
13
+
14
+ Start by calling `list_tech_analysis_tasks` to see what's assigned to you. Present the list to the user and ask which task they want to work on.
15
+
16
+ ### Step 2: Load Context
17
+
18
+ Once the user picks a task, call `get_task_context` with the phase ID. This loads:
19
+ - The approved requirements document (what needs to be built)
20
+ - Project and client context
21
+ - Repository information
22
+
23
+ Share a summary of the requirements with the user and confirm you're ready to begin.
24
+
25
+ ### Step 3: Explore the Codebase
26
+
27
+ Now analyse the local codebase. The user has the repository/repositories cloned in their current working directory. Use fast repository search and focused file reads to explore:
28
+
29
+ - **Project structure** — folder layout, module organisation
30
+ - **Tech stack** — frameworks, versions, build tools (check package.json, pom.xml, build.gradle, etc.)
31
+ - **Architecture patterns** — how the app is structured (MVC, layered, microservices, etc.)
32
+ - **Existing APIs** — routes, controllers, endpoints
33
+ - **Data models** — database schemas, entities, types
34
+ - **Dependencies** — external libraries, their versions, what they're used for
35
+ - **Testing** — test framework, coverage, test patterns
36
+ - **Configuration** — environment handling, feature flags, deployment config
37
+ - **Integration points** — external services, message queues, APIs consumed
38
+
39
+ Discuss your findings with the user as you go. Ask clarifying questions about design decisions, business context, or areas of concern.
40
+
41
+ ### Step 4: Impact Analysis
42
+
43
+ Based on the requirements and your codebase exploration, assess:
44
+
45
+ - **What needs to change** — which files, modules, or services need modification
46
+ - **What needs to be created** — new components, services, APIs
47
+ - **Risks and constraints** — technical debt, tight coupling, performance concerns
48
+ - **Dependencies between changes** — what order should things be built in
49
+ - **Recommended approach** — how to implement the requirements given the current codebase
50
+
51
+ ### Step 5: Produce the Document
52
+
53
+ When the user is satisfied with the analysis, produce a structured technical analysis document. The document must include:
54
+
55
+ 1. **Codebase Overview** — what exists today (structure, stack, patterns)
56
+ 2. **Technical Stack** — frameworks, versions, build tools, deployment
57
+ 3. **Architecture Patterns** — how the app is structured, key design decisions
58
+ 4. **Existing APIs & Services** — current endpoints and integrations
59
+ 5. **Data Model** — current schema, entities, relationships
60
+ 6. **Impact Analysis** — what needs to change for the requirements
61
+ 7. **Risks & Constraints** — technical debt, performance concerns, coupling issues
62
+ 8. **Recommended Approach** — how to implement, including sequencing
63
+ 9. **Dependencies** — external libraries, services, and inter-module dependencies
64
+ 10. **Testing Strategy** — how to test the changes given current test infrastructure
65
+
66
+ ### Step 6: Submit
67
+
68
+ Ask the user to review the document. When they approve, call `submit_tech_analysis` with:
69
+ - The phase ID from the task
70
+ - The complete document
71
+ - A conversation summary covering: key findings, decisions made, areas of concern discussed
72
+
73
+ After submission, confirm success and let the user know the document is available in Konductro for review and approval.
74
+
75
+ ## Important Rules
76
+
77
+ - Always start by loading tasks from Konductro — don't skip this step
78
+ - Explore the ACTUAL codebase — don't assume or hallucinate file contents
79
+ - Be thorough but focused — analyse what's relevant to the requirements
80
+ - Ask the user questions — they know the codebase context you don't
81
+ - Produce a complete, standalone document that an architect can use without additional context
82
+ - The conversation summary should capture the "why" behind decisions, not just the findings