Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
5014c36
add AI coding agent instructions to AGENTS.md
Dec 5, 2025
470c7db
chore: initialize SpecKit framework for Spec-Driven Development
Dec 5, 2025
12e34b3
chore: add SpecKit agent definitions for VS Code Copilot
Dec 5, 2025
2d85fab
docs: add GitHub Copilot plugin research and specification
Dec 5, 2025
585a17d
Add comprehensive GitHub Copilot API research and implementation stra…
Dec 5, 2025
60798d1
feat: add comprehensive specification and quality checklist for GitHu…
Dec 5, 2025
a849964
feat: update Phase 1 spec for Adoption metrics only
Dec 5, 2025
f4d44ac
Merge updated Phase 1 spec
Dec 5, 2025
f80fd49
refactor: explicitly include engaged users in Adoption Dashboard requ…
Dec 9, 2025
f2b1052
refactor: remove team-level metrics from Phase 1 scope
Dec 9, 2025
7be0b3e
refactor: specify raw username storage for seat assignments
Dec 9, 2025
7439621
refactor: remove PR summary usage from Phase 1 scope
Dec 9, 2025
2af4f7e
Refactor code structure for improved readability and maintainability
Dec 11, 2025
06276a2
refactor: add complete API response schemas to research summary
Dec 11, 2025
d4dcddf
feat: implement GitHub Copilot Adoption Plugin with comprehensive dat…
Dec 11, 2025
41712f1
Merge branch 'worktree-2025-12-11T18-21-24' into 001-copilot-metrics-…
Dec 11, 2025
3a4bd1b
feat: enhance GitHub Copilot plugin plan with detailed API surface an…
Dec 11, 2025
05d20aa
feat: scaffold copilot plugin foundation
Dec 11, 2025
a5fbd1a
copilot: add connection & scope APIs
Dec 16, 2025
c1a76b4
copilot: ingest Copilot metrics and seats
Dec 16, 2025
9619fef
spec: update Copilot plugin task checklist
Dec 16, 2025
308bb87
grafana: add Copilot adoption dashboard
Dec 16, 2025
430c00c
docs: document Copilot adoption dashboard
Dec 16, 2025
8f271e3
feat(copilot): implement DataSourcePipelinePlan for blueprint v2.0.0 …
Dec 23, 2025
79094de
copilot: set auth header for API client
Jan 2, 2026
bd9b64a
copilot: clamp metrics date range to API window
Jan 2, 2026
b025ff1
copilot: accept seat API response shapes
Jan 2, 2026
e8aef8b
copilot: add RawDataOrigin to tool models
Jan 5, 2026
00e1b5d
copilot: extract seats and sync seat totals
Jan 5, 2026
00d5aaa
copilot: update e2e fixtures for seats and language metrics
Jan 5, 2026
97b147e
grafana: fix Copilot dashboard seat axis and editor pie
Jan 5, 2026
1b3d4fe
Merge branch 'main' into 001-copilot-metrics-plugin
ewega Jan 5, 2026
839ac67
chore: polish Copilot Phase 7 docs
Jan 5, 2026
f82540a
Merge branch '001-copilot-metrics-plugin' of https://github.com/ewega…
Jan 5, 2026
8e246e1
Merge branch 'main' into 001-copilot-metrics-plugin
ewega Jan 6, 2026
9eac64d
fix(grafana): disable folder structure creation for dashboards
Jan 9, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,20 @@
config-ui/
grafana/
releases/

# Common ignores
.DS_Store
Thumbs.db
*.log
.env
.env.*

# Editor/IDE
.vscode/
.idea/

# Dependency & build outputs
**/node_modules/
**/dist/
**/build/
**/coverage/
29 changes: 29 additions & 0 deletions .github/agents/copilot-instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# incubator-devlake Development Guidelines

Auto-generated from all feature plans. Last updated: 2025-12-11

## Active Technologies

- Go 1.20 (DevLake backend); Grafana JSON dashboards; SQL for visualization queries + DevLake plugin helper packages (`helpers/pluginhelper/apihelper`, `helpers/pluginhelper/dal`), `net/http` for GitHub REST calls, `gorm.io/gorm`, `github.com/tidwall/gjson` for JSON parsing, Grafana dashboard definitions (001-copilot-metrics-plugin)

## Project Structure

```text
src/
tests/
```

## Commands

# Add commands for Go 1.20 (DevLake backend); Grafana JSON dashboards; SQL for visualization queries

## Code Style

Go 1.20 (DevLake backend); Grafana JSON dashboards; SQL for visualization queries: Follow standard conventions

## Recent Changes

- 001-copilot-metrics-plugin: Added Go 1.20 (DevLake backend); Grafana JSON dashboards; SQL for visualization queries + DevLake plugin helper packages (`helpers/pluginhelper/apihelper`, `helpers/pluginhelper/dal`), `net/http` for GitHub REST calls, `gorm.io/gorm`, `github.com/tidwall/gjson` for JSON parsing, Grafana dashboard definitions

<!-- MANUAL ADDITIONS START -->
<!-- MANUAL ADDITIONS END -->
184 changes: 184 additions & 0 deletions .github/agents/speckit.analyze.agent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
---
description: Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
---

## User Input

```text
$ARGUMENTS
```

You **MUST** consider the user input before proceeding (if not empty).

## Goal

Identify inconsistencies, duplications, ambiguities, and underspecified items across the three core artifacts (`spec.md`, `plan.md`, `tasks.md`) before implementation. This command MUST run only after `/speckit.tasks` has successfully produced a complete `tasks.md`.

## Operating Constraints

**STRICTLY READ-ONLY**: Do **not** modify any files. Output a structured analysis report. Offer an optional remediation plan (user must explicitly approve before any follow-up editing commands would be invoked manually).

**Constitution Authority**: The project constitution (`.specify/memory/constitution.md`) is **non-negotiable** within this analysis scope. Constitution conflicts are automatically CRITICAL and require adjustment of the spec, plan, or tasks—not dilution, reinterpretation, or silent ignoring of the principle. If a principle itself needs to change, that must occur in a separate, explicit constitution update outside `/speckit.analyze`.

## Execution Steps

### 1. Initialize Analysis Context

Run `.specify/scripts/powershell/check-prerequisites.ps1 -Json -RequireTasks -IncludeTasks` once from repo root and parse JSON for FEATURE_DIR and AVAILABLE_DOCS. Derive absolute paths:

- SPEC = FEATURE_DIR/spec.md
- PLAN = FEATURE_DIR/plan.md
- TASKS = FEATURE_DIR/tasks.md

Abort with an error message if any required file is missing (instruct the user to run missing prerequisite command).
For single quotes in args like "I'm Groot", use escape syntax: e.g 'I'\''m Groot' (or double-quote if possible: "I'm Groot").

### 2. Load Artifacts (Progressive Disclosure)

Load only the minimal necessary context from each artifact:

**From spec.md:**

- Overview/Context
- Functional Requirements
- Non-Functional Requirements
- User Stories
- Edge Cases (if present)

**From plan.md:**

- Architecture/stack choices
- Data Model references
- Phases
- Technical constraints

**From tasks.md:**

- Task IDs
- Descriptions
- Phase grouping
- Parallel markers [P]
- Referenced file paths

**From constitution:**

- Load `.specify/memory/constitution.md` for principle validation

### 3. Build Semantic Models

Create internal representations (do not include raw artifacts in output):

- **Requirements inventory**: Each functional + non-functional requirement with a stable key (derive slug based on imperative phrase; e.g., "User can upload file" → `user-can-upload-file`)
- **User story/action inventory**: Discrete user actions with acceptance criteria
- **Task coverage mapping**: Map each task to one or more requirements or stories (inference by keyword / explicit reference patterns like IDs or key phrases)
- **Constitution rule set**: Extract principle names and MUST/SHOULD normative statements

### 4. Detection Passes (Token-Efficient Analysis)

Focus on high-signal findings. Limit to 50 findings total; aggregate remainder in overflow summary.

#### A. Duplication Detection

- Identify near-duplicate requirements
- Mark lower-quality phrasing for consolidation

#### B. Ambiguity Detection

- Flag vague adjectives (fast, scalable, secure, intuitive, robust) lacking measurable criteria
- Flag unresolved placeholders (TODO, TKTK, ???, `<placeholder>`, etc.)

#### C. Underspecification

- Requirements with verbs but missing object or measurable outcome
- User stories missing acceptance criteria alignment
- Tasks referencing files or components not defined in spec/plan

#### D. Constitution Alignment

- Any requirement or plan element conflicting with a MUST principle
- Missing mandated sections or quality gates from constitution

#### E. Coverage Gaps

- Requirements with zero associated tasks
- Tasks with no mapped requirement/story
- Non-functional requirements not reflected in tasks (e.g., performance, security)

#### F. Inconsistency

- Terminology drift (same concept named differently across files)
- Data entities referenced in plan but absent in spec (or vice versa)
- Task ordering contradictions (e.g., integration tasks before foundational setup tasks without dependency note)
- Conflicting requirements (e.g., one requires Next.js while other specifies Vue)

### 5. Severity Assignment

Use this heuristic to prioritize findings:

- **CRITICAL**: Violates constitution MUST, missing core spec artifact, or requirement with zero coverage that blocks baseline functionality
- **HIGH**: Duplicate or conflicting requirement, ambiguous security/performance attribute, untestable acceptance criterion
- **MEDIUM**: Terminology drift, missing non-functional task coverage, underspecified edge case
- **LOW**: Style/wording improvements, minor redundancy not affecting execution order

### 6. Produce Compact Analysis Report

Output a Markdown report (no file writes) with the following structure:

## Specification Analysis Report

| ID | Category | Severity | Location(s) | Summary | Recommendation |
|----|----------|----------|-------------|---------|----------------|
| A1 | Duplication | HIGH | spec.md:L120-134 | Two similar requirements ... | Merge phrasing; keep clearer version |

(Add one row per finding; generate stable IDs prefixed by category initial.)

**Coverage Summary Table:**

| Requirement Key | Has Task? | Task IDs | Notes |
|-----------------|-----------|----------|-------|

**Constitution Alignment Issues:** (if any)

**Unmapped Tasks:** (if any)

**Metrics:**

- Total Requirements
- Total Tasks
- Coverage % (requirements with >=1 task)
- Ambiguity Count
- Duplication Count
- Critical Issues Count

### 7. Provide Next Actions

At end of report, output a concise Next Actions block:

- If CRITICAL issues exist: Recommend resolving before `/speckit.implement`
- If only LOW/MEDIUM: User may proceed, but provide improvement suggestions
- Provide explicit command suggestions: e.g., "Run /speckit.specify with refinement", "Run /speckit.plan to adjust architecture", "Manually edit tasks.md to add coverage for 'performance-metrics'"

### 8. Offer Remediation

Ask the user: "Would you like me to suggest concrete remediation edits for the top N issues?" (Do NOT apply them automatically.)

## Operating Principles

### Context Efficiency

- **Minimal high-signal tokens**: Focus on actionable findings, not exhaustive documentation
- **Progressive disclosure**: Load artifacts incrementally; don't dump all content into analysis
- **Token-efficient output**: Limit findings table to 50 rows; summarize overflow
- **Deterministic results**: Rerunning without changes should produce consistent IDs and counts

### Analysis Guidelines

- **NEVER modify files** (this is read-only analysis)
- **NEVER hallucinate missing sections** (if absent, report them accurately)
- **Prioritize constitution violations** (these are always CRITICAL)
- **Use examples over exhaustive rules** (cite specific instances, not generic patterns)
- **Report zero issues gracefully** (emit success report with coverage statistics)

## Context

$ARGUMENTS
Loading