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/init-session.md
+1-6Lines changed: 1 addition & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,19 +10,14 @@ Execute the startup sequence from `docs/WORKFLOW.md`. AGENTS.md is always in con
10
10
## Steps
11
11
12
12
1.**Confirm working directory** — run `pwd`.
13
-
14
13
2.**Orient** — read `docs/claude-progress.txt` (only the last 3 days of entries matter) and run:
15
14
16
15
```bash
17
16
git log --oneline --since="3 days ago"
18
17
```
19
18
20
19
3.**Check struggles** — read `docs/agent-struggles.json`. If unresolved entries exist, present to user.
21
-
22
20
4.**Pick feature** — read `docs/features.json`, find first `"passes": false` entry.
23
-
24
21
5.**Start dev env** — run `./init.sh`.
25
-
26
22
6.**Run tests** — run `yarn test` and verify app is healthy.
27
-
28
-
7.**Wait** — tell the user you're oriented, report the picked feature, and ask what they'd like to work on. Do NOT start any work autonomously.
23
+
7.**Wait** — tell the user you're oriented, report the picked feature and which step of the Feature Development Sequence you'd start at. When the user says to proceed, follow the Feature Development Sequence in `docs/WORKFLOW.md` step by step. Do NOT start any work autonomously.
- Never stage files that likely contain secrets (.env, credentials, etc.)
21
21
- Skip if everything is already staged
22
22
23
-
3.**Update progress log** — read `docs/claude-progress.txt`, then prepend a new entry at the top (after the header line) following the format documented in `AGENTS.md` under `claude-progress.txt`.
23
+
3.**Update progress log** — read `docs/claude-progress.txt`, then prepend a new entry at the top (after the header line) following the format in `docs/references/claude-progress-readme.md`.
24
24
- Analyze the staged diff to determine what was done
25
25
- Use today's actual date
26
26
- Be concise but complete
27
27
- Stage the updated file: `git add docs/claude-progress.txt`
28
28
29
-
4.**Draft and commit** — follow all commit message rules from `.claude/commands/commit-user.md`. Use a HEREDOC and append a Co-Authored-By trailer:
29
+
4.**Migrate blockers** — if the progress entry you just wrote has a `Blockers:` line that is NOT `None`:
30
+
- Read `docs/agent-struggles.json`
31
+
- For each blocker, append an entry:
32
+
33
+
```json
34
+
{
35
+
"date": "<today>",
36
+
"description": "<blocker text from progress entry>",
37
+
"cause": "<your best short assessment>",
38
+
"suggestion": "<what would fix or prevent this>",
39
+
"resolved": false
40
+
}
41
+
```
42
+
43
+
- Stage: `git add docs/agent-struggles.json`
44
+
45
+
5. **Draft and commit** — follow all rules from `docs/references/commit-message-guide.md`. Determine authorship mode (tandem vs autonomous) from the guide. Use a HEREDOC:
46
+
30
47
```bash
31
48
git commit -m "$(cat <<'EOF'
32
49
<type>: <subject>
33
50
34
51
<body>
35
52
36
-
Co-Authored-By: Claude <noreply@anthropic.com>
53
+
<authorship trailer>
37
54
EOF
38
55
)"
39
56
```
40
57
41
-
5. **Verify** — run `git status` and `git log --oneline -1` to confirm success.
58
+
6.**Verify** — run `git status` and `git log --oneline -1` to confirm success.
Copy file name to clipboardExpand all lines: docs/ARCHITECTURE.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,14 @@ Arrows mean "imports / depends on."
39
39
- Services never import Components or Views
40
40
- No circular dependencies
41
41
42
+
## Page / Component / Hook Rules
43
+
44
+
**Components are simple** — they receive data via props, render it, and call callbacks to return data to the parent (or use context). No logic at the top of a component.
45
+
46
+
**Pages are smart** — they use central hooks (e.g. `useClusterService`, `useSourceControl`) to fetch, prepare, and transform all data needed for downstream components.
47
+
48
+
**Extract logic into hooks** — if a page or component has any logic (state management, data transformation, side effects), extract it into a co-named hook: `FunctionTable.tsx` → `useFunctionTable.ts`, `FunctionsListPage.tsx` → `useFunctionsListPage.ts`. If there is no logic, no hook is needed.
49
+
42
50
## Architectural Guidance
43
51
44
52
- PatternFly components preferred over custom HTML
Copy file name to clipboardExpand all lines: docs/WORKFLOW.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ Every session, before doing any work:
16
16
17
17
After [Startup Sequence](#startup-sequence), work through the picked feature:
18
18
19
-
1.**Plan** — read `docs/ARCHITECTURE.md` + `docs/STYLEGUIDE.md` + `docs/TESTING.md`, then create implementation plan → `docs/plans/active/<incremented-number>-feature-<short-name>.md`
19
+
1.**Plan** — read `docs/ARCHITECTURE.md` + `docs/STYLEGUIDE.md` + `docs/TESTING.md`, then use `/brainstorming` to design the chosen feature from `docs/features.json`, then use `/writing-plans` to create implementation plan → `docs/plans/active/<NNN>-<type>-<short-name>.md`
20
20
2.**Branch** — create feature branch per [Branching](#branching) convention
21
21
3.**Implement** — using `/executing-plans` skill
22
22
4.**Review** — code review using `/requesting-code-review` skill, fix found issues
@@ -28,22 +28,22 @@ After [Startup Sequence](#startup-sequence), work through the picked feature:
28
28
29
29
## Branching
30
30
31
-
Create a feature branch per plan: `<NNN>-<type>-<short-name>` where `<NNN>` matches the plan number and `<type>` the conventional commit type as per our [Git Commit Guide](references/commit-message-agent-readme.md#conventional-commits). Example: `001-feat-function-list-empty-state`.
31
+
Create a feature branch per plan: `<NNN>-<type>-<short-name>` where `<NNN>` matches the plan number and `<type>` the conventional commit type as per our [Git Commit Guide](references/commit-message-guide.md#conventional-commits). Example: `001-feat-function-list-empty-state`. If we're on a feature branch already do nothing.
32
32
33
33
## Pull Requests
34
34
35
35
Open PRs via `gh pr create` using the template at `.github/pull_request_template.md`.
36
36
37
37
**Title format:**`<Type>: <Sentence ending with a period.>` — capitalize the type and the first word, end with a period. Example: `Feat: Add function list page with empty state.`
38
38
39
-
Types are the same as [conventional commits](references/commit-message-agent-readme.md#conventional-commits) but capitalized.
39
+
Types are the same as [conventional commits](references/commit-message-guide.md#conventional-commits) but capitalized.
40
40
41
41
## Session Rules
42
42
43
43
- One feature at a time
44
44
- Clean state at end (code suitable for merging to main)
45
45
- Update [`docs/claude-progress.txt`](references/claude-progress-readme.md) before session ends
46
-
- Commit work to git before ending — follow [`docs/references/commit-message-agent-readme.md`](references/commit-message-agent-readme.md) strictly
46
+
- Commit work to git before ending — follow [`docs/references/commit-message-guide.md`](references/commit-message-guide.md) strictly
0 commit comments