asdm-cli 0.1.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.
- package/README.md +784 -0
- package/dist/index.mjs +3013 -0
- package/package.json +58 -0
- package/registry/agents/.gitkeep +0 -0
- package/registry/agents/architect.asdm.md +71 -0
- package/registry/agents/code-reviewer.asdm.md +75 -0
- package/registry/agents/data-analyst.asdm.md +69 -0
- package/registry/agents/documentation-writer.asdm.md +70 -0
- package/registry/agents/mobile-engineer.asdm.md +68 -0
- package/registry/agents/security-auditor.asdm.md +74 -0
- package/registry/agents/test-engineer.asdm.md +70 -0
- package/registry/commands/.gitkeep +0 -0
- package/registry/commands/analyze-schema.asdm.md +73 -0
- package/registry/commands/audit-deps.asdm.md +76 -0
- package/registry/commands/check-file.asdm.md +58 -0
- package/registry/commands/generate-types.asdm.md +82 -0
- package/registry/commands/scaffold-component.asdm.md +89 -0
- package/registry/commands/summarize.asdm.md +61 -0
- package/registry/latest.json +253 -0
- package/registry/policy.yaml +14 -0
- package/registry/profiles/base/.gitkeep +0 -0
- package/registry/profiles/base/profile.yaml +19 -0
- package/registry/profiles/data-analytics/.gitkeep +0 -0
- package/registry/profiles/data-analytics/profile.yaml +24 -0
- package/registry/profiles/fullstack-engineer/.gitkeep +0 -0
- package/registry/profiles/fullstack-engineer/profile.yaml +38 -0
- package/registry/profiles/mobile/ios/.gitkeep +0 -0
- package/registry/profiles/mobile/profile.yaml +24 -0
- package/registry/profiles/security/profile.yaml +24 -0
- package/registry/skills/api-design/.gitkeep +0 -0
- package/registry/skills/api-design/SKILL.asdm.md +101 -0
- package/registry/skills/code-review/SKILL.asdm.md +83 -0
- package/registry/skills/data-pipeline/SKILL.asdm.md +95 -0
- package/registry/skills/frontend-design/SKILL.asdm.md +73 -0
- package/registry/skills/mobile-patterns/SKILL.asdm.md +102 -0
- package/registry/skills/pandas/.gitkeep +0 -0
- package/registry/skills/plan-protocol/SKILL.asdm.md +66 -0
- package/registry/skills/react-best-practices/.gitkeep +0 -0
- package/registry/skills/react-native/.gitkeep +0 -0
- package/registry/skills/sql/.gitkeep +0 -0
- package/registry/skills/swift-ui/.gitkeep +0 -0
- package/registry/skills/threat-modeling/SKILL.asdm.md +87 -0
- package/registry/v0.1.0.json +253 -0
- package/registry/v1.0.0.json +153 -0
- package/schemas/.gitkeep +0 -0
- package/schemas/agent.schema.json +82 -0
- package/schemas/command.schema.json +58 -0
- package/schemas/config.schema.json +29 -0
- package/schemas/lock.schema.json +65 -0
- package/schemas/manifest.schema.json +98 -0
- package/schemas/overlay.schema.json +72 -0
- package/schemas/profile.schema.json +64 -0
- package/schemas/skill.schema.json +64 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://asdm.dev/schemas/lock.schema.json",
|
|
4
|
+
"title": "ASDM Lockfile",
|
|
5
|
+
"description": "Schema for .asdm-lock.json",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["synced_at", "cli_version", "manifest_version", "registry", "profile", "files"],
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"$schema": { "type": "string" },
|
|
11
|
+
"synced_at": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"format": "date-time"
|
|
14
|
+
},
|
|
15
|
+
"cli_version": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"pattern": "^\\d+\\.\\d+\\.\\d+$"
|
|
18
|
+
},
|
|
19
|
+
"manifest_version": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"pattern": "^\\d+\\.\\d+\\.\\d+$"
|
|
22
|
+
},
|
|
23
|
+
"manifest_commit": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"registry": {
|
|
27
|
+
"type": "string"
|
|
28
|
+
},
|
|
29
|
+
"profile": {
|
|
30
|
+
"type": "string"
|
|
31
|
+
},
|
|
32
|
+
"resolved_profiles": {
|
|
33
|
+
"type": "array",
|
|
34
|
+
"items": { "type": "string" }
|
|
35
|
+
},
|
|
36
|
+
"files": {
|
|
37
|
+
"type": "object",
|
|
38
|
+
"additionalProperties": {
|
|
39
|
+
"type": "object",
|
|
40
|
+
"required": ["sha256", "source", "adapter", "version"],
|
|
41
|
+
"additionalProperties": false,
|
|
42
|
+
"properties": {
|
|
43
|
+
"sha256": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
46
|
+
},
|
|
47
|
+
"source": {
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
"adapter": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
"version": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"pattern": "^\\d+\\.\\d+\\.\\d+$"
|
|
56
|
+
},
|
|
57
|
+
"managed": {
|
|
58
|
+
"type": "boolean",
|
|
59
|
+
"default": true
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://asdm.dev/schemas/manifest.schema.json",
|
|
4
|
+
"title": "ASDM Manifest",
|
|
5
|
+
"description": "Schema for manifest.json generated by CI",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["version", "policy", "profiles", "assets"],
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"$schema": { "type": "string" },
|
|
11
|
+
"version": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"pattern": "^\\d+\\.\\d+\\.\\d+$"
|
|
14
|
+
},
|
|
15
|
+
"policy": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"required": ["allowed_profiles", "allowed_providers", "min_cli_version"],
|
|
18
|
+
"additionalProperties": false,
|
|
19
|
+
"properties": {
|
|
20
|
+
"locked_fields": {
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": { "type": "string" }
|
|
23
|
+
},
|
|
24
|
+
"telemetry": { "type": "boolean" },
|
|
25
|
+
"auto_verify": { "type": "boolean" },
|
|
26
|
+
"install_hooks": { "type": "boolean" },
|
|
27
|
+
"allowed_profiles": {
|
|
28
|
+
"type": "array",
|
|
29
|
+
"items": { "type": "string" },
|
|
30
|
+
"minItems": 1
|
|
31
|
+
},
|
|
32
|
+
"allowed_providers": {
|
|
33
|
+
"type": "array",
|
|
34
|
+
"items": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"enum": ["opencode", "claude-code", "copilot"]
|
|
37
|
+
},
|
|
38
|
+
"minItems": 1
|
|
39
|
+
},
|
|
40
|
+
"min_cli_version": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"pattern": "^\\d+\\.\\d+\\.\\d+$"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"profiles": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"additionalProperties": {
|
|
49
|
+
"type": "object",
|
|
50
|
+
"additionalProperties": false,
|
|
51
|
+
"properties": {
|
|
52
|
+
"extends": {
|
|
53
|
+
"type": "array",
|
|
54
|
+
"items": { "type": "string" }
|
|
55
|
+
},
|
|
56
|
+
"agents": {
|
|
57
|
+
"type": "array",
|
|
58
|
+
"items": { "type": "string" }
|
|
59
|
+
},
|
|
60
|
+
"skills": {
|
|
61
|
+
"type": "array",
|
|
62
|
+
"items": { "type": "string" }
|
|
63
|
+
},
|
|
64
|
+
"commands": {
|
|
65
|
+
"type": "array",
|
|
66
|
+
"items": { "type": "string" }
|
|
67
|
+
},
|
|
68
|
+
"providers": {
|
|
69
|
+
"type": "array",
|
|
70
|
+
"items": { "type": "string" }
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"assets": {
|
|
76
|
+
"type": "object",
|
|
77
|
+
"additionalProperties": {
|
|
78
|
+
"type": "object",
|
|
79
|
+
"required": ["sha256", "size", "version"],
|
|
80
|
+
"additionalProperties": false,
|
|
81
|
+
"properties": {
|
|
82
|
+
"sha256": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
85
|
+
},
|
|
86
|
+
"size": {
|
|
87
|
+
"type": "integer",
|
|
88
|
+
"minimum": 0
|
|
89
|
+
},
|
|
90
|
+
"version": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"pattern": "^\\d+\\.\\d+\\.\\d+$"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://asdm.dev/schemas/overlay.schema.json",
|
|
4
|
+
"title": "ASDM Overlay",
|
|
5
|
+
"description": "Schema for .asdm-overlay.json (personal dev customizations — additive only)",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"properties": {
|
|
9
|
+
"$schema": { "type": "string" },
|
|
10
|
+
"additional_skills": {
|
|
11
|
+
"type": "array",
|
|
12
|
+
"items": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"required": ["name", "source"],
|
|
15
|
+
"additionalProperties": false,
|
|
16
|
+
"properties": {
|
|
17
|
+
"name": { "type": "string" },
|
|
18
|
+
"source": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"enum": ["local", "github"]
|
|
21
|
+
},
|
|
22
|
+
"path": { "type": "string" },
|
|
23
|
+
"repo": { "type": "string" }
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"additional_agents": {
|
|
28
|
+
"type": "array",
|
|
29
|
+
"items": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"required": ["name", "source"],
|
|
32
|
+
"additionalProperties": false,
|
|
33
|
+
"properties": {
|
|
34
|
+
"name": { "type": "string" },
|
|
35
|
+
"source": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"enum": ["local", "github"]
|
|
38
|
+
},
|
|
39
|
+
"path": { "type": "string" },
|
|
40
|
+
"repo": { "type": "string" }
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"provider_overrides": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"additionalProperties": true,
|
|
47
|
+
"properties": {
|
|
48
|
+
"opencode": {
|
|
49
|
+
"type": "object",
|
|
50
|
+
"additionalProperties": true,
|
|
51
|
+
"properties": {
|
|
52
|
+
"mcp_servers": {
|
|
53
|
+
"type": "array",
|
|
54
|
+
"items": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"required": ["name", "command"],
|
|
57
|
+
"properties": {
|
|
58
|
+
"name": { "type": "string" },
|
|
59
|
+
"command": { "type": "string" },
|
|
60
|
+
"args": {
|
|
61
|
+
"type": "array",
|
|
62
|
+
"items": { "type": "string" }
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://asdm.dev/schemas/profile.schema.json",
|
|
4
|
+
"title": "ASDM Profile",
|
|
5
|
+
"description": "Schema for ASDM profile.yaml",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["name"],
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"name": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"pattern": "^[a-z][a-z0-9-]*$"
|
|
13
|
+
},
|
|
14
|
+
"description": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"extends": {
|
|
18
|
+
"type": "array",
|
|
19
|
+
"items": { "type": "string" },
|
|
20
|
+
"description": "Parent profiles to inherit from"
|
|
21
|
+
},
|
|
22
|
+
"agents": {
|
|
23
|
+
"type": "array",
|
|
24
|
+
"items": { "type": "string" },
|
|
25
|
+
"uniqueItems": true
|
|
26
|
+
},
|
|
27
|
+
"skills": {
|
|
28
|
+
"type": "array",
|
|
29
|
+
"items": { "type": "string" },
|
|
30
|
+
"uniqueItems": true
|
|
31
|
+
},
|
|
32
|
+
"commands": {
|
|
33
|
+
"type": "array",
|
|
34
|
+
"items": { "type": "string" },
|
|
35
|
+
"uniqueItems": true
|
|
36
|
+
},
|
|
37
|
+
"providers": {
|
|
38
|
+
"type": "array",
|
|
39
|
+
"items": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"enum": ["opencode", "claude-code", "copilot"]
|
|
42
|
+
},
|
|
43
|
+
"uniqueItems": true
|
|
44
|
+
},
|
|
45
|
+
"provider_config": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"additionalProperties": true,
|
|
48
|
+
"properties": {
|
|
49
|
+
"opencode": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"additionalProperties": true
|
|
52
|
+
},
|
|
53
|
+
"claude-code": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"additionalProperties": true
|
|
56
|
+
},
|
|
57
|
+
"copilot": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"additionalProperties": true
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://asdm.dev/schemas/skill.schema.json",
|
|
4
|
+
"title": "ASDM Skill",
|
|
5
|
+
"description": "Schema for ASDM skill .asdm.md frontmatter",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["name", "type", "description", "version"],
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"name": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"pattern": "^[a-z][a-z0-9-]*$"
|
|
13
|
+
},
|
|
14
|
+
"type": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"const": "skill"
|
|
17
|
+
},
|
|
18
|
+
"description": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"minLength": 10,
|
|
21
|
+
"maxLength": 200
|
|
22
|
+
},
|
|
23
|
+
"version": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"pattern": "^\\d+\\.\\d+\\.\\d+$"
|
|
26
|
+
},
|
|
27
|
+
"tags": {
|
|
28
|
+
"type": "array",
|
|
29
|
+
"items": { "type": "string" },
|
|
30
|
+
"uniqueItems": true
|
|
31
|
+
},
|
|
32
|
+
"trigger": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"description": "Natural language trigger condition"
|
|
35
|
+
},
|
|
36
|
+
"providers": {
|
|
37
|
+
"type": "object",
|
|
38
|
+
"additionalProperties": false,
|
|
39
|
+
"properties": {
|
|
40
|
+
"opencode": {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"additionalProperties": true,
|
|
43
|
+
"properties": {
|
|
44
|
+
"location": { "type": "string" }
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"claude-code": {
|
|
48
|
+
"type": "object",
|
|
49
|
+
"additionalProperties": true,
|
|
50
|
+
"properties": {
|
|
51
|
+
"location": { "type": "string" }
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"copilot": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"additionalProperties": true,
|
|
57
|
+
"properties": {
|
|
58
|
+
"applyTo": { "type": "string" }
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|