You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| User profile | What they need | How code2skill helps |
27
+
|---|---|---|
28
+
| Python maintainers | AI assistants that respect current module boundaries and extension patterns | Generates evidence-backed Skills from source code and keeps them reviewable |
29
+
| DevEx and platform teams | A repeatable way to standardize AI coding context across many repositories | Exposes CLI, Python API, CI refresh, and readiness checks |
30
+
| Open-source maintainers | Contributor-facing AI instructions that can be audited like normal docs | Writes committed artifacts and target files instead of relying on private chat history |
31
+
| AI tooling evaluators | One repository knowledge layer that works across several assistants | Publishes the same Skills to Codex, Claude Code, Cursor, GitHub Copilot, and Windsurf |
32
+
33
+
## Business Scenarios
34
+
35
+
| Scenario | Trigger | Success signal |
36
+
|---|---|---|
37
+
| First AI adoption | A repository starts using Codex, Cursor, Claude Code, Copilot, or Windsurf |`scan`, `adapt`, and `doctor` produce a ready target file |
38
+
| PR knowledge refresh | Code changes may invalidate existing AI instructions |`ci --mode auto` reports affected files and affected Skills |
39
+
| Multi-tool rollout | A team uses more than one AI coding assistant |`adapt --target all` writes consistent target outputs |
40
+
| Platform automation | A DevEx team runs repository-knowledge checks across many services | Python API returns structured results and readiness status |
41
+
| Open-source contributor onboarding | New contributors need implementation rules before changing code | Generated Skills and README/docs explain the repo's working contracts |
`code2skill` is designed around three practical adoption scenarios for Python repositories.
3
+
`code2skill` is built for maintainers who want AI coding assistants to work from the same repository knowledge that humans can review in Git.
4
4
5
-
## 1. First Repository Knowledge Layer
5
+
## Primary Personas
6
6
7
-
### Problem
7
+
| Persona | Repository pain | Desired outcome |
8
+
|---|---|---|
9
+
| Python maintainer | AI tools miss local boundaries, style, and workflow contracts | Generated Skills describe how to modify the current codebase |
10
+
| DevEx or platform owner | Each team writes different AI rules, often by hand | One repeatable workflow standardizes assistant context across services |
11
+
| Open-source maintainer | Contributors bring different tools and private chat context | Public, committed AI instructions make project expectations auditable |
12
+
| AI tooling evaluator | A repository needs to compare Codex, Cursor, Claude Code, Copilot, and Windsurf | One Skill layer can be adapted into every supported target |
8
13
9
-
AI coding assistants enter a repository with incomplete context. They read README files, scattered docs, previous code, and chat history, but those sources are not structured as stable implementation guidance.
14
+
## Scenario 1: First Repository Knowledge Layer
15
+
16
+
### Trigger
17
+
18
+
A Python repository is adopting an AI coding assistant and needs a durable project entry point.
The team gets a reviewable AI-facing project entry point that can be committed and maintained like normal repository documentation.
39
+
`doctor` reports `ready: true`, generated Skills are reviewable, and the target instruction file can be committed.
31
40
32
-
## 2. Pull Request And CI Refresh
41
+
## Scenario 2: Pull Request And CI Refresh
33
42
34
-
### Problem
43
+
### Trigger
35
44
36
-
AI-facing project knowledge becomes stale when code changes. Manually updating tool-specific rules is easy to skip, and full regeneration on every PR can be wasteful.
45
+
Code changes may invalidate existing AI-facing project knowledge.
-`.code2skill/report.json`showing mode, changed files, affected files, affected Skills, and written artifacts
59
+
-`.code2skill/report.json`with execution mode, changed files, affected files, affected Skills, and written artifacts
51
60
-`.code2skill/state/analysis-state.json` for later incremental reuse
52
61
53
-
### Business Value
62
+
### Success Signal
54
63
55
-
Teams can make AI knowledge maintenance part of the normal PR loop, with clear evidence for what changed and why.
64
+
The PR shows exactly which AI-facing artifacts changed and why.
56
65
57
-
## 3. One Knowledge Source For Multiple AI Tools
66
+
## Scenario 3: One Knowledge Source For Multiple AI Tools
58
67
59
-
### Problem
68
+
### Trigger
60
69
61
-
Codex, Claude Code, Cursor, GitHub Copilot, and Windsurf all expect different instruction-file locations or formats. Maintaining each by hand creates drift.
70
+
A team uses more than one AI coding assistant and wants consistent project context across tools.
62
71
63
72
### Workflow
64
73
@@ -68,23 +77,23 @@ code2skill adapt . --target all
68
77
code2skill doctor . --target all
69
78
```
70
79
71
-
### Output
80
+
### Outputs
72
81
73
82
-`AGENTS.md`
74
83
-`CLAUDE.md`
75
84
-`.cursor/rules/*`
76
85
-`.github/copilot-instructions.md`
77
86
-`.windsurfrules`
78
87
79
-
### Business Value
88
+
### Success Signal
80
89
81
-
The repository owns one generated Skill layer and publishes consistent context to every supported assistant.
90
+
All supported target files are generated from the same Skill layer, and `doctor --target all` reports readiness.
82
91
83
-
## 4. Platform Or DevEx Automation
92
+
## Scenario 4: Platform Or DevEx Automation
84
93
85
-
### Problem
94
+
### Trigger
86
95
87
-
Platform teams may need to run the same repository-knowledge workflow across multiple Python services without shelling out manually.
96
+
A platform team needs to run the same repository-knowledge workflow across multiple Python services.
88
97
89
98
### Workflow
90
99
@@ -99,9 +108,29 @@ for repo in repositories:
99
108
raiseRuntimeError((repo, readiness.next_steps))
100
109
```
101
110
102
-
### Business Value
111
+
### Success Signal
112
+
113
+
Automation can make a binary decision from structured readiness data instead of scraping free-form command output.
114
+
115
+
## Scenario 5: Open-Source Contributor Onboarding
116
+
117
+
### Trigger
118
+
119
+
An open-source project wants new contributors and AI assistants to share the same implementation rules before a change is proposed.
0 commit comments