claude-code-tutor 1.0.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 +315 -0
- package/dist/chunk-A6ZZXTHB.js +65 -0
- package/dist/chunk-OYDUGORC.js +75 -0
- package/dist/cli.js +1362 -0
- package/dist/meta-TZOSLFST.js +13 -0
- package/dist/tutor-memory-M6GNB3LQ.js +19 -0
- package/package.json +61 -0
- package/skills-fallback/cc-agent-teams/SKILL.md +38 -0
- package/skills-fallback/cc-best-practices/SKILL.md +34 -0
- package/skills-fallback/cc-changelog/SKILL.md +20 -0
- package/skills-fallback/cc-channels/SKILL.md +34 -0
- package/skills-fallback/cc-cli-reference/SKILL.md +16 -0
- package/skills-fallback/cc-commands/SKILL.md +12 -0
- package/skills-fallback/cc-common-workflows-ask-claude-about-its-capabilities/SKILL.md +43 -0
- package/skills-fallback/cc-common-workflows-create-pull-requests/SKILL.md +26 -0
- package/skills-fallback/cc-common-workflows-fix-bugs-efficiently/SKILL.md +30 -0
- package/skills-fallback/cc-common-workflows-get-notified-when-claude-needs-your-attention/SKILL.md +95 -0
- package/skills-fallback/cc-common-workflows-handle-documentation/SKILL.md +36 -0
- package/skills-fallback/cc-common-workflows-next-steps/SKILL.md +22 -0
- package/skills-fallback/cc-common-workflows-refactor-code/SKILL.md +36 -0
- package/skills-fallback/cc-common-workflows-reference-files-and-directories/SKILL.md +47 -0
- package/skills-fallback/cc-common-workflows-resume-previous-conversations/SKILL.md +57 -0
- package/skills-fallback/cc-common-workflows-run-claude-on-a-schedule/SKILL.md +22 -0
- package/skills-fallback/cc-common-workflows-run-parallel-claude-code-sessions-with-git-worktrees/SKILL.md +43 -0
- package/skills-fallback/cc-common-workflows-understand-new-codebases/SKILL.md +81 -0
- package/skills-fallback/cc-common-workflows-use-claude-as-a-unix-style-utility/SKILL.md +83 -0
- package/skills-fallback/cc-common-workflows-use-extended-thinking-thinking-mode/SKILL.md +15 -0
- package/skills-fallback/cc-common-workflows-use-plan-mode-for-safe-code-analysis/SKILL.md +80 -0
- package/skills-fallback/cc-common-workflows-use-specialized-subagents/SKILL.md +69 -0
- package/skills-fallback/cc-common-workflows-work-with-images/SKILL.md +71 -0
- package/skills-fallback/cc-common-workflows-work-with-tests/SKILL.md +36 -0
- package/skills-fallback/cc-github-actions/SKILL.md +44 -0
- package/skills-fallback/cc-headless/SKILL.md +40 -0
- package/skills-fallback/cc-hooks-config/SKILL.md +32 -0
- package/skills-fallback/cc-hooks-events/SKILL.md +24 -0
- package/skills-fallback/cc-hooks-guide/SKILL.md +59 -0
- package/skills-fallback/cc-hooks-io/SKILL.md +11 -0
- package/skills-fallback/cc-learning-path/SKILL.md +77 -0
- package/skills-fallback/cc-mcp-add-mcp-servers-from-json-configuration/SKILL.md +36 -0
- package/skills-fallback/cc-mcp-authenticate-with-remote-mcp-servers/SKILL.md +52 -0
- package/skills-fallback/cc-mcp-import-mcp-servers-from-claude-desktop/SKILL.md +28 -0
- package/skills-fallback/cc-mcp-installing-mcp-servers/SKILL.md +86 -0
- package/skills-fallback/cc-mcp-managed-mcp-configuration/SKILL.md +55 -0
- package/skills-fallback/cc-mcp-mcp-installation-scopes/SKILL.md +57 -0
- package/skills-fallback/cc-mcp-mcp-output-limits-and-warnings/SKILL.md +46 -0
- package/skills-fallback/cc-mcp-popular-mcp-servers/SKILL.md +11 -0
- package/skills-fallback/cc-mcp-practical-examples/SKILL.md +102 -0
- package/skills-fallback/cc-mcp-respond-to-mcp-elicitation-requests/SKILL.md +20 -0
- package/skills-fallback/cc-mcp-scale-with-mcp-tool-search/SKILL.md +29 -0
- package/skills-fallback/cc-mcp-use-claude-code-as-an-mcp-server/SKILL.md +59 -0
- package/skills-fallback/cc-mcp-use-mcp-prompts-as-commands/SKILL.md +40 -0
- package/skills-fallback/cc-mcp-use-mcp-resources/SKILL.md +45 -0
- package/skills-fallback/cc-mcp-use-mcp-servers-from-claude-ai/SKILL.md +35 -0
- package/skills-fallback/cc-mcp-what-you-can-do-with-mcp/SKILL.md +12 -0
- package/skills-fallback/cc-memory/SKILL.md +28 -0
- package/skills-fallback/cc-model-config/SKILL.md +27 -0
- package/skills-fallback/cc-permissions/SKILL.md +38 -0
- package/skills-fallback/cc-plugins/SKILL.md +44 -0
- package/skills-fallback/cc-sandboxing/SKILL.md +22 -0
- package/skills-fallback/cc-scheduled-tasks/SKILL.md +20 -0
- package/skills-fallback/cc-settings-configuration-scopes/SKILL.md +57 -0
- package/skills-fallback/cc-settings-environment-variables/SKILL.md +13 -0
- package/skills-fallback/cc-settings-plugin-configuration/SKILL.md +11 -0
- package/skills-fallback/cc-settings-see-also/SKILL.md +13 -0
- package/skills-fallback/cc-settings-settings-files/SKILL.md +38 -0
- package/skills-fallback/cc-settings-subagent-configuration/SKILL.md +16 -0
- package/skills-fallback/cc-settings-tools-available-to-claude/SKILL.md +13 -0
- package/skills-fallback/cc-skills-guide/SKILL.md +23 -0
- package/skills-fallback/cc-sub-agents/SKILL.md +30 -0
- package/skills-fallback/cc-tutor/SKILL.md +108 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-common-workflows-run-claude-on-a-schedule
|
|
3
|
+
description: "Flujos de trabajo comunes en Claude Code: worktrees paralelos, git workflows, plan mode, extended thinking, pipe input/output."
|
|
4
|
+
invocation: auto
|
|
5
|
+
_pulse: true
|
|
6
|
+
_syncedAt: "2026-04-07T04:44:06.766Z"
|
|
7
|
+
_source: "https://code.claude.com/docs/en/common-workflows.md"
|
|
8
|
+
---
|
|
9
|
+
## Run Claude on a schedule
|
|
10
|
+
|
|
11
|
+
Suppose you want Claude to handle a task automatically on a recurring basis, like reviewing open PRs every morning, auditing dependencies weekly, or checking for CI failures overnight.
|
|
12
|
+
|
|
13
|
+
Pick a scheduling option based on where you want the task to run:
|
|
14
|
+
|
|
15
|
+
| Option | Where it runs | Best for |
|
|
16
|
+
| :----------------------------------------------------- | :-------------------------------- | :------------------------------------------------------------------------------------------------------------ |
|
|
17
|
+
| [Cloud scheduled tasks](/en/web-scheduled-tasks) | Anthropic-managed infrastructure | Tasks that should run even when your computer is off. Configure at [claude.ai/code](https://claude.ai/code). |
|
|
18
|
+
| [Desktop scheduled tasks](/en/desktop-scheduled-tasks) | Your machine, via the desktop app | Tasks that need direct access to local files, tools, or uncommitted changes. |
|
|
19
|
+
| [GitHub Actions](/en/github-actions) | Your CI pipeline | Tasks tied to repo events like opened PRs, or cron schedules that should live alongside your workflow config. |
|
|
20
|
+
| [`/loop`](/en/scheduled-tasks) | The current CLI session | Quick polling while a session is open. Tasks are cancelled when you exit. |
|
|
21
|
+
|
|
22
|
+
***
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-common-workflows-run-parallel-claude-code-sessions-with-git-worktrees
|
|
3
|
+
description: "Flujos de trabajo comunes en Claude Code: worktrees paralelos, git workflows, plan mode, extended thinking, pipe input/output."
|
|
4
|
+
invocation: auto
|
|
5
|
+
_pulse: true
|
|
6
|
+
_syncedAt: "2026-04-07T04:44:06.766Z"
|
|
7
|
+
_source: "https://code.claude.com/docs/en/common-workflows.md"
|
|
8
|
+
---
|
|
9
|
+
## Run parallel Claude Code sessions with Git worktrees
|
|
10
|
+
|
|
11
|
+
When working on multiple tasks at once, you need each Claude session to have its own copy of the codebase so changes don't collide. Git worktrees solve this by creating separate working directories that each have their own files and branch, while sharing the same repository history and remote connections. This means you can have Claude working on a feature in one worktree while fixing a bug in another, without either session interfering with the other.
|
|
12
|
+
|
|
13
|
+
Use the `--worktree` (`-w`) flag to create an isolated worktree and start Claude in it. The value you pass becomes the worktree directory name and branch name:
|
|
14
|
+
|
|
15
|
+
```bash theme={null}
|
|
16
|
+
# Start Claude in a worktree named "feature-auth"
|
|
17
|
+
# Creates .claude/worktrees/feature-auth/ with a new branch
|
|
18
|
+
claude --worktree feature-auth
|
|
19
|
+
|
|
20
|
+
# Start another session in a separate worktree
|
|
21
|
+
claude --worktree bugfix-123
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
If you omit the name, Claude generates a random one automatically:
|
|
25
|
+
|
|
26
|
+
```bash theme={null}
|
|
27
|
+
# Auto-generates a name like "bright-running-fox"
|
|
28
|
+
claude --worktree
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Worktrees are created at `<repo>/.claude/worktrees/<name>` and branch from the default remote branch, which is where `origin/HEAD` points. The worktree branch is named `worktree-<name>`.
|
|
32
|
+
|
|
33
|
+
The base branch is not configurable through a Claude Code flag or setting. `origin/HEAD` is a reference stored in your local `.git` directory that Git set once when you cloned. If the repository's default branch later changes on GitHub or GitLab, your local `origin/HEAD` keeps pointing at the old one, and worktrees will branch from there. To re-sync your local reference with whatever the remote currently considers its default:
|
|
34
|
+
|
|
35
|
+
```bash theme={null}
|
|
36
|
+
git remote set-head origin -a
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
This is a standard Git command that only updates your local `.git` directory. Nothing on the remote server changes. If you want worktrees to base off a specific branch rather than the remote's default, set it explicitly with `git remote set-head origin your-branch-name`.
|
|
40
|
+
|
|
41
|
+
For full control over how worktrees are created, including choosing a different base per invocation, configure a [WorktreeCreate hook](/en/hooks#worktreecreate). The hook replaces Claude Code's default `git worktree` logic entirely, so you can fetch and branch from whatever ref you need.
|
|
42
|
+
|
|
43
|
+
You can also ask Claude to "work in a worktree" or "start a worktree" during a session, and it will create one automatically.
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-common-workflows-understand-new-codebases
|
|
3
|
+
description: "Flujos de trabajo comunes en Claude Code: worktrees paralelos, git workflows, plan mode, extended thinking, pipe input/output."
|
|
4
|
+
invocation: auto
|
|
5
|
+
_pulse: true
|
|
6
|
+
_syncedAt: "2026-04-07T04:44:06.766Z"
|
|
7
|
+
_source: "https://code.claude.com/docs/en/common-workflows.md"
|
|
8
|
+
---
|
|
9
|
+
> ## Documentation Index
|
|
10
|
+
>
|
|
11
|
+
> Fetch the complete documentation index at: https://code.claude.com/docs/llms.txt
|
|
12
|
+
> Use this file to discover all available pages before exploring further.
|
|
13
|
+
|
|
14
|
+
# Common workflows
|
|
15
|
+
|
|
16
|
+
> Step-by-step guides for exploring codebases, fixing bugs, refactoring, testing, and other everyday tasks with Claude Code.
|
|
17
|
+
|
|
18
|
+
This page covers practical workflows for everyday development: exploring unfamiliar code, debugging, refactoring, writing tests, creating PRs, and managing sessions. Each section includes example prompts you can adapt to your own projects. For higher-level patterns and tips, see [Best practices](/en/best-practices).
|
|
19
|
+
|
|
20
|
+
## Understand new codebases
|
|
21
|
+
|
|
22
|
+
### Get a quick codebase overview
|
|
23
|
+
|
|
24
|
+
Suppose you've just joined a new project and need to understand its structure quickly.
|
|
25
|
+
|
|
26
|
+
<Step title="Start Claude Code">
|
|
27
|
+
```bash theme={null}
|
|
28
|
+
claude
|
|
29
|
+
```
|
|
30
|
+
</Step>
|
|
31
|
+
|
|
32
|
+
<Step title="Ask for a high-level overview">
|
|
33
|
+
```text theme={null}
|
|
34
|
+
give me an overview of this codebase
|
|
35
|
+
```
|
|
36
|
+
</Step>
|
|
37
|
+
|
|
38
|
+
<Step title="Dive deeper into specific components">
|
|
39
|
+
```text theme={null}
|
|
40
|
+
explain the main architecture patterns used here
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
````
|
|
44
|
+
```text theme={null}
|
|
45
|
+
what are the key data models?
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
```text theme={null}
|
|
49
|
+
how is authentication handled?
|
|
50
|
+
```
|
|
51
|
+
````
|
|
52
|
+
|
|
53
|
+
</Step>
|
|
54
|
+
</Steps>
|
|
55
|
+
|
|
56
|
+
- Start with broad questions, then narrow down to specific areas
|
|
57
|
+
- Ask about coding conventions and patterns used in the project
|
|
58
|
+
- Request a glossary of project-specific terms
|
|
59
|
+
|
|
60
|
+
### Find relevant code
|
|
61
|
+
|
|
62
|
+
Suppose you need to locate code related to a specific feature or functionality.
|
|
63
|
+
|
|
64
|
+
<Step title="Get context on how components interact">
|
|
65
|
+
```text theme={null}
|
|
66
|
+
how do these authentication files work together?
|
|
67
|
+
```
|
|
68
|
+
</Step>
|
|
69
|
+
|
|
70
|
+
<Step title="Understand the execution flow">
|
|
71
|
+
```text theme={null}
|
|
72
|
+
trace the login process from front-end to database
|
|
73
|
+
```
|
|
74
|
+
</Step>
|
|
75
|
+
</Steps>
|
|
76
|
+
|
|
77
|
+
- Be specific about what you're looking for
|
|
78
|
+
- Use domain language from the project
|
|
79
|
+
- Install a [code intelligence plugin](/en/discover-plugins#code-intelligence) for your language to give Claude precise "go to definition" and "find references" navigation
|
|
80
|
+
|
|
81
|
+
***
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-common-workflows-use-claude-as-a-unix-style-utility
|
|
3
|
+
description: "Flujos de trabajo comunes en Claude Code: worktrees paralelos, git workflows, plan mode, extended thinking, pipe input/output."
|
|
4
|
+
invocation: auto
|
|
5
|
+
_pulse: true
|
|
6
|
+
_syncedAt: "2026-04-07T04:44:06.766Z"
|
|
7
|
+
_source: "https://code.claude.com/docs/en/common-workflows.md"
|
|
8
|
+
---
|
|
9
|
+
## Use Claude as a unix-style utility
|
|
10
|
+
|
|
11
|
+
### Add Claude to your verification process
|
|
12
|
+
|
|
13
|
+
Suppose you want to use Claude Code as a linter or code reviewer.
|
|
14
|
+
|
|
15
|
+
**Add Claude to your build script:**
|
|
16
|
+
|
|
17
|
+
```json theme={null}
|
|
18
|
+
// package.json
|
|
19
|
+
{
|
|
20
|
+
...
|
|
21
|
+
"scripts": {
|
|
22
|
+
...
|
|
23
|
+
"lint:claude": "claude -p 'you are a linter. please look at the changes vs. main and report any issues related to typos. report the filename and line number on one line, and a description of the issue on the second line. do not return any other text.'"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
- Use Claude for automated code review in your CI/CD pipeline
|
|
29
|
+
- Customize the prompt to check for specific issues relevant to your project
|
|
30
|
+
- Consider creating multiple scripts for different types of verification
|
|
31
|
+
|
|
32
|
+
### Pipe in, pipe out
|
|
33
|
+
|
|
34
|
+
Suppose you want to pipe data into Claude, and get back data in a structured format.
|
|
35
|
+
|
|
36
|
+
**Pipe data through Claude:**
|
|
37
|
+
|
|
38
|
+
```bash theme={null}
|
|
39
|
+
cat build-error.txt | claude -p 'concisely explain the root cause of this build error' > output.txt
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
- Use pipes to integrate Claude into existing shell scripts
|
|
43
|
+
- Combine with other Unix tools for powerful workflows
|
|
44
|
+
- Consider using `--output-format` for structured output
|
|
45
|
+
|
|
46
|
+
### Control output format
|
|
47
|
+
|
|
48
|
+
Suppose you need Claude's output in a specific format, especially when integrating Claude Code into scripts or other tools.
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
This outputs just Claude's plain text response (default behavior).
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
</Step>
|
|
55
|
+
|
|
56
|
+
<Step title="Use JSON format">
|
|
57
|
+
```bash theme={null}
|
|
58
|
+
cat code.py | claude -p 'analyze this code for bugs' --output-format json > analysis.json
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
```
|
|
62
|
+
This outputs a JSON array of messages with metadata including cost and duration.
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
</Step>
|
|
66
|
+
|
|
67
|
+
<Step title="Use streaming JSON format">
|
|
68
|
+
```bash theme={null}
|
|
69
|
+
cat log.txt | claude -p 'parse this log file for errors' --output-format stream-json
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
This outputs a series of JSON objects in real-time as Claude processes the request. Each message is a valid JSON object, but the entire output is not valid JSON if concatenated.
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
</Step>
|
|
77
|
+
</Steps>
|
|
78
|
+
|
|
79
|
+
- Use `--output-format text` for simple integrations where you just need Claude's response
|
|
80
|
+
- Use `--output-format json` when you need the full conversation log
|
|
81
|
+
- Use `--output-format stream-json` for real-time output of each conversation turn
|
|
82
|
+
|
|
83
|
+
***
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-common-workflows-use-extended-thinking-thinking-mode
|
|
3
|
+
description: "Flujos de trabajo comunes en Claude Code: worktrees paralelos, git workflows, plan mode, extended thinking, pipe input/output."
|
|
4
|
+
invocation: auto
|
|
5
|
+
_pulse: true
|
|
6
|
+
_syncedAt: "2026-04-07T04:44:06.766Z"
|
|
7
|
+
_source: "https://code.claude.com/docs/en/common-workflows.md"
|
|
8
|
+
---
|
|
9
|
+
## Use extended thinking (thinking mode)
|
|
10
|
+
|
|
11
|
+
[Extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking) is enabled by default, giving Claude space to reason through complex problems step-by-step before responding. This reasoning is visible in verbose mode, which you can toggle on with `Ctrl+O`.
|
|
12
|
+
|
|
13
|
+
Additionally, Opus 4.6 and Sonnet 4.6 support adaptive reasoning: instead of a fixed thinking token budget, the model dynamically allocates thinking based on your [effort level](/en/model-config#adjust-effort-level) setting. Extended thinking and adaptive reasoning work together to give you control over how deeply Claude reasons before responding.
|
|
14
|
+
|
|
15
|
+
Extended thinking is particularly valuable for complex architectural decisions, challenging bugs, multi-step implementation planning, and evaluating tradeoffs between different approaches.
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-common-workflows-use-plan-mode-for-safe-code-analysis
|
|
3
|
+
description: "Flujos de trabajo comunes en Claude Code: worktrees paralelos, git workflows, plan mode, extended thinking, pipe input/output."
|
|
4
|
+
invocation: auto
|
|
5
|
+
_pulse: true
|
|
6
|
+
_syncedAt: "2026-04-07T04:44:06.766Z"
|
|
7
|
+
_source: "https://code.claude.com/docs/en/common-workflows.md"
|
|
8
|
+
---
|
|
9
|
+
## Use Plan Mode for safe code analysis
|
|
10
|
+
|
|
11
|
+
Plan Mode instructs Claude to create a plan by analyzing the codebase with read-only operations, perfect for exploring codebases, planning complex changes, or reviewing code safely. In Plan Mode, Claude uses [`AskUserQuestion`](/en/tools-reference) to gather requirements and clarify your goals before proposing a plan.
|
|
12
|
+
|
|
13
|
+
### When to use Plan Mode
|
|
14
|
+
|
|
15
|
+
- **Multi-step implementation**: When your feature requires making edits to many files
|
|
16
|
+
- **Code exploration**: When you want to research the codebase thoroughly before changing anything
|
|
17
|
+
- **Interactive development**: When you want to iterate on the direction with Claude
|
|
18
|
+
|
|
19
|
+
### How to use Plan Mode
|
|
20
|
+
|
|
21
|
+
**Turn on Plan Mode during a session**
|
|
22
|
+
|
|
23
|
+
You can switch into Plan Mode during a session using **Shift+Tab** to cycle through permission modes.
|
|
24
|
+
|
|
25
|
+
If you are in Normal Mode, **Shift+Tab** first switches into Auto-Accept Mode, indicated by `⏵⏵ accept edits on` at the bottom of the terminal. A subsequent **Shift+Tab** will switch into Plan Mode, indicated by `⏸ plan mode on`.
|
|
26
|
+
|
|
27
|
+
**Start a new session in Plan Mode**
|
|
28
|
+
|
|
29
|
+
To start a new session in Plan Mode, use the `--permission-mode plan` flag:
|
|
30
|
+
|
|
31
|
+
```bash theme={null}
|
|
32
|
+
claude --permission-mode plan
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
**Run "headless" queries in Plan Mode**
|
|
36
|
+
|
|
37
|
+
You can also run a query in Plan Mode directly with `-p` (that is, in ["headless mode"](/en/headless)):
|
|
38
|
+
|
|
39
|
+
```bash theme={null}
|
|
40
|
+
claude --permission-mode plan -p "Analyze the authentication system and suggest improvements"
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Example: Planning a complex refactor
|
|
44
|
+
|
|
45
|
+
```bash theme={null}
|
|
46
|
+
claude --permission-mode plan
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
```text theme={null}
|
|
50
|
+
I need to refactor our authentication system to use OAuth2. Create a detailed migration plan.
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Claude analyzes the current implementation and create a comprehensive plan. Refine with follow-ups:
|
|
54
|
+
|
|
55
|
+
```text theme={null}
|
|
56
|
+
What about backward compatibility?
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
```text theme={null}
|
|
60
|
+
How should we handle database migration?
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Press `Ctrl+G` to open the plan in your default text editor, where you can edit it directly before Claude proceeds.
|
|
64
|
+
|
|
65
|
+
When you accept a plan, Claude automatically names the session from the plan content. The name appears on the prompt bar and in the session picker. If you've already set a name with `--name` or `/rename`, accepting a plan won't overwrite it.
|
|
66
|
+
|
|
67
|
+
### Configure Plan Mode as default
|
|
68
|
+
|
|
69
|
+
```json theme={null}
|
|
70
|
+
// .claude/settings.json
|
|
71
|
+
{
|
|
72
|
+
"permissions": {
|
|
73
|
+
"defaultMode": "plan"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
See [settings documentation](/en/settings#available-settings) for more configuration options.
|
|
79
|
+
|
|
80
|
+
***
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-common-workflows-use-specialized-subagents
|
|
3
|
+
description: "Flujos de trabajo comunes en Claude Code: worktrees paralelos, git workflows, plan mode, extended thinking, pipe input/output."
|
|
4
|
+
invocation: auto
|
|
5
|
+
_pulse: true
|
|
6
|
+
_syncedAt: "2026-04-07T04:44:06.766Z"
|
|
7
|
+
_source: "https://code.claude.com/docs/en/common-workflows.md"
|
|
8
|
+
---
|
|
9
|
+
## Use specialized subagents
|
|
10
|
+
|
|
11
|
+
Suppose you want to use specialized AI subagents to handle specific tasks more effectively.
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
This shows all available subagents and lets you create new ones.
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
</Step>
|
|
18
|
+
|
|
19
|
+
<Step title="Use subagents automatically">
|
|
20
|
+
Claude Code automatically delegates appropriate tasks to specialized subagents:
|
|
21
|
+
|
|
22
|
+
````
|
|
23
|
+
```text theme={null}
|
|
24
|
+
review my recent code changes for security issues
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
```text theme={null}
|
|
28
|
+
run all tests and fix any failures
|
|
29
|
+
```
|
|
30
|
+
````
|
|
31
|
+
|
|
32
|
+
</Step>
|
|
33
|
+
|
|
34
|
+
<Step title="Explicitly request specific subagents">
|
|
35
|
+
```text theme={null}
|
|
36
|
+
use the code-reviewer subagent to check the auth module
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
````
|
|
40
|
+
```text theme={null}
|
|
41
|
+
have the debugger subagent investigate why users can't log in
|
|
42
|
+
```
|
|
43
|
+
````
|
|
44
|
+
|
|
45
|
+
</Step>
|
|
46
|
+
|
|
47
|
+
<Step title="Create custom subagents for your workflow">
|
|
48
|
+
```text theme={null}
|
|
49
|
+
/agents
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
Then select "Create New subagent" and follow the prompts to define:
|
|
54
|
+
|
|
55
|
+
* A unique identifier that describes the subagent's purpose (for example, `code-reviewer`, `api-designer`).
|
|
56
|
+
* When Claude should use this agent
|
|
57
|
+
* Which tools it can access
|
|
58
|
+
* A system prompt describing the agent's role and behavior
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
</Step>
|
|
62
|
+
</Steps>
|
|
63
|
+
|
|
64
|
+
- Create project-specific subagents in `.claude/agents/` for team sharing
|
|
65
|
+
- Use descriptive `description` fields to enable automatic delegation
|
|
66
|
+
- Limit tool access to what each subagent actually needs
|
|
67
|
+
- Check the [subagents documentation](/en/sub-agents) for detailed examples
|
|
68
|
+
|
|
69
|
+
***
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-common-workflows-work-with-images
|
|
3
|
+
description: "Flujos de trabajo comunes en Claude Code: worktrees paralelos, git workflows, plan mode, extended thinking, pipe input/output."
|
|
4
|
+
invocation: auto
|
|
5
|
+
_pulse: true
|
|
6
|
+
_syncedAt: "2026-04-07T04:44:06.766Z"
|
|
7
|
+
_source: "https://code.claude.com/docs/en/common-workflows.md"
|
|
8
|
+
---
|
|
9
|
+
## Work with images
|
|
10
|
+
|
|
11
|
+
Suppose you need to work with images in your codebase, and you want Claude's help analyzing image content.
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
1. Drag and drop an image into the Claude Code window
|
|
15
|
+
2. Copy an image and paste it into the CLI with ctrl+v (Do not use cmd+v)
|
|
16
|
+
3. Provide an image path to Claude. E.g., "Analyze this image: /path/to/your/image.png"
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
</Step>
|
|
20
|
+
|
|
21
|
+
<Step title="Ask Claude to analyze the image">
|
|
22
|
+
```text theme={null}
|
|
23
|
+
What does this image show?
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
````
|
|
27
|
+
```text theme={null}
|
|
28
|
+
Describe the UI elements in this screenshot
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
```text theme={null}
|
|
32
|
+
Are there any problematic elements in this diagram?
|
|
33
|
+
```
|
|
34
|
+
````
|
|
35
|
+
|
|
36
|
+
</Step>
|
|
37
|
+
|
|
38
|
+
<Step title="Use images for context">
|
|
39
|
+
```text theme={null}
|
|
40
|
+
Here's a screenshot of the error. What's causing it?
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
````
|
|
44
|
+
```text theme={null}
|
|
45
|
+
This is our current database schema. How should we modify it for the new feature?
|
|
46
|
+
```
|
|
47
|
+
````
|
|
48
|
+
|
|
49
|
+
</Step>
|
|
50
|
+
|
|
51
|
+
<Step title="Get code suggestions from visual content">
|
|
52
|
+
```text theme={null}
|
|
53
|
+
Generate CSS to match this design mockup
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
````
|
|
57
|
+
```text theme={null}
|
|
58
|
+
What HTML structure would recreate this component?
|
|
59
|
+
```
|
|
60
|
+
````
|
|
61
|
+
|
|
62
|
+
</Step>
|
|
63
|
+
</Steps>
|
|
64
|
+
|
|
65
|
+
- Use images when text descriptions would be unclear or cumbersome
|
|
66
|
+
- Include screenshots of errors, UI designs, or diagrams for better context
|
|
67
|
+
- You can work with multiple images in a conversation
|
|
68
|
+
- Image analysis works with diagrams, screenshots, mockups, and more
|
|
69
|
+
- When Claude references images (for example, `[Image #1]`), `Cmd+Click` (Mac) or `Ctrl+Click` (Windows/Linux) the link to open the image in your default viewer
|
|
70
|
+
|
|
71
|
+
***
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-common-workflows-work-with-tests
|
|
3
|
+
description: "Flujos de trabajo comunes en Claude Code: worktrees paralelos, git workflows, plan mode, extended thinking, pipe input/output."
|
|
4
|
+
invocation: auto
|
|
5
|
+
_pulse: true
|
|
6
|
+
_syncedAt: "2026-04-07T04:44:06.766Z"
|
|
7
|
+
_source: "https://code.claude.com/docs/en/common-workflows.md"
|
|
8
|
+
---
|
|
9
|
+
## Work with tests
|
|
10
|
+
|
|
11
|
+
Suppose you need to add tests for uncovered code.
|
|
12
|
+
|
|
13
|
+
<Step title="Generate test scaffolding">
|
|
14
|
+
```text theme={null}
|
|
15
|
+
add tests for the notification service
|
|
16
|
+
```
|
|
17
|
+
</Step>
|
|
18
|
+
|
|
19
|
+
<Step title="Add meaningful test cases">
|
|
20
|
+
```text theme={null}
|
|
21
|
+
add test cases for edge conditions in the notification service
|
|
22
|
+
```
|
|
23
|
+
</Step>
|
|
24
|
+
|
|
25
|
+
<Step title="Run and verify tests">
|
|
26
|
+
```text theme={null}
|
|
27
|
+
run the new tests and fix any failures
|
|
28
|
+
```
|
|
29
|
+
</Step>
|
|
30
|
+
</Steps>
|
|
31
|
+
|
|
32
|
+
Claude can generate tests that follow your project's existing patterns and conventions. When asking for tests, be specific about what behavior you want to verify. Claude examines your existing test files to match the style, frameworks, and assertion patterns already in use.
|
|
33
|
+
|
|
34
|
+
For comprehensive coverage, ask Claude to identify edge cases you might have missed. Claude can analyze your code paths and suggest tests for error conditions, boundary values, and unexpected inputs that are easy to overlook.
|
|
35
|
+
|
|
36
|
+
***
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-github-actions
|
|
3
|
+
description: "Claude Code en GitHub Actions: setup, @claude mentions, configuración con Bedrock y Vertex, security considerations."
|
|
4
|
+
invocation: auto
|
|
5
|
+
_pulse: true
|
|
6
|
+
_syncedAt: "2026-04-07T04:44:06.766Z"
|
|
7
|
+
_source: "https://code.claude.com/docs/en/github-actions.md"
|
|
8
|
+
---
|
|
9
|
+
> ## Documentation Index
|
|
10
|
+
>
|
|
11
|
+
> Fetch the complete documentation index at: https://code.claude.com/docs/llms.txt
|
|
12
|
+
> Use this file to discover all available pages before exploring further.
|
|
13
|
+
|
|
14
|
+
# Claude Code GitHub Actions
|
|
15
|
+
|
|
16
|
+
> Learn about integrating Claude Code into your development workflow with Claude Code GitHub Actions
|
|
17
|
+
|
|
18
|
+
Claude Code GitHub Actions brings AI-powered automation to your GitHub workflow. With a simple `@claude` mention in any PR or issue, Claude can analyze your code, create pull requests, implement features, and fix bugs - all while following your project's standards. For automatic reviews posted on every PR without a trigger, see [GitHub Code Review](/en/code-review).
|
|
19
|
+
|
|
20
|
+
## Why use Claude Code GitHub Actions?
|
|
21
|
+
|
|
22
|
+
- **Instant PR creation**: Describe what you need, and Claude creates a complete PR with all necessary changes
|
|
23
|
+
- **Automated code implementation**: Turn issues into working code with a single command
|
|
24
|
+
- **Follows your standards**: Claude respects your `CLAUDE.md` guidelines and existing code patterns
|
|
25
|
+
- **Simple setup**: Get started in minutes with our installer and API key
|
|
26
|
+
- **Secure by default**: Your code stays on Github's runners
|
|
27
|
+
|
|
28
|
+
## What can Claude do?
|
|
29
|
+
|
|
30
|
+
Claude Code provides a powerful GitHub Action that transforms how you work with code:
|
|
31
|
+
|
|
32
|
+
### Claude Code Action
|
|
33
|
+
|
|
34
|
+
This GitHub Action allows you to run Claude Code within your GitHub Actions workflows. You can use this to build any custom workflow on top of Claude Code.
|
|
35
|
+
|
|
36
|
+
[View repository →](https://github.com/anthropics/claude-code-action)
|
|
37
|
+
|
|
38
|
+
## Setup
|
|
39
|
+
|
|
40
|
+
## Quick setup
|
|
41
|
+
|
|
42
|
+
The easiest way to set up this action is through Claude Code in the terminal. Just open claude and run `/install-github-app`.
|
|
43
|
+
|
|
44
|
+
This command will guide you through setting up the GitHub app and required secrets.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-headless
|
|
3
|
+
description: "Modo headless y Agent SDK de Claude Code: uso programático desde CLI, Python y TypeScript, output estructurado, bare mode."
|
|
4
|
+
invocation: auto
|
|
5
|
+
_pulse: true
|
|
6
|
+
_syncedAt: "2026-04-07T04:44:06.766Z"
|
|
7
|
+
_source: "https://code.claude.com/docs/en/headless.md"
|
|
8
|
+
---
|
|
9
|
+
> ## Documentation Index
|
|
10
|
+
>
|
|
11
|
+
> Fetch the complete documentation index at: https://code.claude.com/docs/llms.txt
|
|
12
|
+
> Use this file to discover all available pages before exploring further.
|
|
13
|
+
|
|
14
|
+
# Run Claude Code programmatically
|
|
15
|
+
|
|
16
|
+
> Use the Agent SDK to run Claude Code programmatically from the CLI, Python, or TypeScript.
|
|
17
|
+
|
|
18
|
+
The [Agent SDK](https://platform.claude.com/docs/en/agent-sdk/overview) gives you the same tools, agent loop, and context management that power Claude Code. It's available as a CLI for scripts and CI/CD, or as [Python](https://platform.claude.com/docs/en/agent-sdk/python) and [TypeScript](https://platform.claude.com/docs/en/agent-sdk/typescript) packages for full programmatic control.
|
|
19
|
+
|
|
20
|
+
To run Claude Code programmatically from the CLI, pass `-p` with your prompt and any [CLI options](/en/cli-reference):
|
|
21
|
+
|
|
22
|
+
```bash theme={null}
|
|
23
|
+
claude -p "Find and fix the bug in auth.py" --allowedTools "Read,Edit,Bash"
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
This page covers using the Agent SDK via the CLI (`claude -p`). For the Python and TypeScript SDK packages with structured outputs, tool approval callbacks, and native message objects, see the [full Agent SDK documentation](https://platform.claude.com/docs/en/agent-sdk/overview).
|
|
27
|
+
|
|
28
|
+
## Basic usage
|
|
29
|
+
|
|
30
|
+
Add the `-p` (or `--print`) flag to any `claude` command to run it non-interactively. All [CLI options](/en/cli-reference) work with `-p`, including:
|
|
31
|
+
|
|
32
|
+
- `--continue` for [continuing conversations](#continue-conversations)
|
|
33
|
+
- `--allowedTools` for [auto-approving tools](#auto-approve-tools)
|
|
34
|
+
- `--output-format` for [structured output](#get-structured-output)
|
|
35
|
+
|
|
36
|
+
This example asks Claude a question about your codebase and prints the response:
|
|
37
|
+
|
|
38
|
+
```bash theme={null}
|
|
39
|
+
claude -p "What does the auth module do?"
|
|
40
|
+
```
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-hooks-config
|
|
3
|
+
description: "Configuración de hooks en settings.json, matchers, campos"
|
|
4
|
+
invocation: auto
|
|
5
|
+
_pulse: true
|
|
6
|
+
_syncedAt: "2026-04-07T04:44:06.766Z"
|
|
7
|
+
_source: "https://code.claude.com/docs/en/hooks.md"
|
|
8
|
+
---
|
|
9
|
+
## Configuration
|
|
10
|
+
|
|
11
|
+
Hooks are defined in JSON settings files. The configuration has three levels of nesting:
|
|
12
|
+
|
|
13
|
+
1. Choose a [hook event](#hook-events) to respond to, like `PreToolUse` or `Stop`
|
|
14
|
+
2. Add a [matcher group](#matcher-patterns) to filter when it fires, like "only for the Bash tool"
|
|
15
|
+
3. Define one or more [hook handlers](#hook-handler-fields) to run when matched
|
|
16
|
+
|
|
17
|
+
See [How a hook resolves](#how-a-hook-resolves) above for a complete walkthrough with an annotated example.
|
|
18
|
+
|
|
19
|
+
### Hook locations
|
|
20
|
+
|
|
21
|
+
Where you define a hook determines its scope:
|
|
22
|
+
|
|
23
|
+
| Location | Scope | Shareable |
|
|
24
|
+
| :--------------------------------------------------------- | :---------------------------- | :--------------------------------- |
|
|
25
|
+
| `~/.claude/settings.json` | All your projects | No, local to your machine |
|
|
26
|
+
| `.claude/settings.json` | Single project | Yes, can be committed to the repo |
|
|
27
|
+
| `.claude/settings.local.json` | Single project | No, gitignored |
|
|
28
|
+
| Managed policy settings | Organization-wide | Yes, admin-controlled |
|
|
29
|
+
| [Plugin](/en/plugins) `hooks/hooks.json` | When plugin is enabled | Yes, bundled with the plugin |
|
|
30
|
+
| [Skill](/en/skills) or [agent](/en/sub-agents) frontmatter | While the component is active | Yes, defined in the component file |
|
|
31
|
+
|
|
32
|
+
For details on settings file resolution, see [settings](/en/settings). Enterprise administrators can use `allowManagedHooksOnly` to block user, project, and plugin hooks. See [Hook configuration](/en/settings#hook-configuration).
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-hooks-events
|
|
3
|
+
description: "Tabla de eventos y cuándo se disparan"
|
|
4
|
+
invocation: auto
|
|
5
|
+
_pulse: true
|
|
6
|
+
_syncedAt: "2026-04-07T04:44:06.766Z"
|
|
7
|
+
_source: "https://code.claude.com/docs/en/hooks.md"
|
|
8
|
+
---
|
|
9
|
+
## Hook lifecycle
|
|
10
|
+
|
|
11
|
+
Hooks fire at specific points during a Claude Code session. When an event fires and a matcher matches, Claude Code passes JSON context about the event to your hook handler. For command hooks, input arrives on stdin. For HTTP hooks, it arrives as the POST request body. Your handler can then inspect the input, take action, and optionally return a decision. Some events fire once per session, while others fire repeatedly inside the agentic loop:
|
|
12
|
+
|
|
13
|
+
<div style={{maxWidth: "500px", margin: "0 auto"}}>
|
|
14
|
+
<Frame>
|
|
15
|
+
<img src="https://mintcdn.com/claude-code/WLZtXlltXc8aIoIM/images/hooks-lifecycle.svg?fit=max&auto=format&n=WLZtXlltXc8aIoIM&q=85&s=6a0bf67eeb570a96e36b564721fa2a93" alt="Hook lifecycle diagram showing the sequence of hooks from SessionStart through the agentic loop (PreToolUse, PermissionRequest, PostToolUse, SubagentStart/Stop, TaskCreated, TaskCompleted) to Stop or StopFailure, TeammateIdle, PreCompact, PostCompact, and SessionEnd, with Elicitation and ElicitationResult nested inside MCP tool execution, PermissionDenied as a side branch from PermissionRequest for auto-mode denials, and WorktreeCreate, WorktreeRemove, Notification, ConfigChange, InstructionsLoaded, CwdChanged, and FileChanged as standalone async events" width="520" height="1155" data-path="images/hooks-lifecycle.svg" />
|
|
16
|
+
</Frame>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
The table below summarizes when each event fires. The [Hook events](#hook-events) section documents the full input schema and decision control options for each one.
|
|
20
|
+
|
|
21
|
+
| Event | When it fires |
|
|
22
|
+
| :------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
23
|
+
| `SessionStart` | When a session begins or resumes |
|
|
24
|
+
| `UserPromptSubmit` | When you submit a prompt, before Claude processes it |
|