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
Copy file name to clipboardExpand all lines: .claude/commands/add-new-parser-or-provider.md
+14-12Lines changed: 14 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,16 +10,17 @@ Use this workflow when working on **add-new-parser-or-provider** in `periscope`.
10
10
11
11
## Goal
12
12
13
-
Adds support for a new agent/provider/parser, including implementation, integration, and test coverage.
13
+
Adds support for a new agent, data source, or provider to the system, including schema detection, discovery, and integration with sync and test coverage.
14
14
15
15
## Common Files
16
16
17
-
-`internal/parser/*_provider.go`
18
-
-`internal/parser/*.go`
19
-
-`internal/parser/testdata/*/*.json`
20
-
-`internal/parser/*_test.go`
17
+
-`internal/parser/<agent>_provider.go`
18
+
-`internal/parser/<agent>.go`
19
+
-`internal/parser/types.go`
21
20
-`internal/parser/provider.go`
22
-
-`internal/sync/engine.go`
21
+
-`internal/parser/provider_migration.go`
22
+
-`internal/parser/testdata/<agent>/*`
23
+
-`internal/parser/<agent>_test.go`
23
24
24
25
## Suggested Sequence
25
26
@@ -30,13 +31,14 @@ Adds support for a new agent/provider/parser, including implementation, integrat
30
31
31
32
## Typical Commit Signals
32
33
33
-
- Add new parser/provider Go files (e.g., internal/parser/<provider>_provider.go, internal/parser/<provider>.go).
34
-
- Update provider registry or discovery (e.g., internal/parser/provider.go).
35
-
- Add or update test data and test cases (e.g., internal/parser/testdata/<provider>/*.json, internal/parser/<provider>_test.go).
36
-
- Integrate with sync engine if needed (e.g., internal/sync/engine.go).
37
-
- Update documentation and format sources (e.g., docs/internal/session-format-sources.md, docs/configuration.md).
34
+
- Implement parser/provider logic in `internal/parser` (e.g., `<agent>_provider.go`, `<agent>.go`).
35
+
- Add or update types in `internal/parser/types.go`.
36
+
- Update provider registration in `internal/parser/provider.go` and/or `provider_migration.go`.
37
+
- Add test fixtures and coverage in `internal/parser/testdata/<agent>/*` and `<agent>_test.go`.
38
+
- Integrate with sync engine (`internal/sync/engine.go`, `engine_test.go`, `integration_test.go`).
39
+
- Update documentation and format sources (e.g., `docs/internal/session-format-sources.md`, `docs/configuration.md`).
38
40
39
41
## Notes
40
42
41
43
- Treat this as a scaffold, not a hard-coded script.
42
-
- Update the command if the workflow evolves materially.
44
+
- Update the command if the workflow evolves materially.
0 commit comments