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,19 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
getBaseDir,
|
|
4
|
+
getDefaultMemory,
|
|
5
|
+
logSession,
|
|
6
|
+
readMemory,
|
|
7
|
+
setBaseDir,
|
|
8
|
+
updateMemory,
|
|
9
|
+
writeMemory
|
|
10
|
+
} from "./chunk-A6ZZXTHB.js";
|
|
11
|
+
export {
|
|
12
|
+
getBaseDir,
|
|
13
|
+
getDefaultMemory,
|
|
14
|
+
logSession,
|
|
15
|
+
readMemory,
|
|
16
|
+
setBaseDir,
|
|
17
|
+
updateMemory,
|
|
18
|
+
writeMemory
|
|
19
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "claude-code-tutor",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Keep Claude Code alive. Fresh docs, built-in tutor, always in sync.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"pulse": "./dist/cli.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"skills-fallback",
|
|
12
|
+
"README.md"
|
|
13
|
+
],
|
|
14
|
+
"keywords": [
|
|
15
|
+
"claude-code",
|
|
16
|
+
"claude",
|
|
17
|
+
"anthropic",
|
|
18
|
+
"skills",
|
|
19
|
+
"ai",
|
|
20
|
+
"developer-tools",
|
|
21
|
+
"mcp",
|
|
22
|
+
"hooks",
|
|
23
|
+
"tutor"
|
|
24
|
+
],
|
|
25
|
+
"author": "Erik Rodriguez",
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "https://github.com/Erikole21/claude-code-tutor.git"
|
|
30
|
+
},
|
|
31
|
+
"homepage": "https://github.com/Erikole21/claude-code-tutor#readme",
|
|
32
|
+
"bugs": {
|
|
33
|
+
"url": "https://github.com/Erikole21/claude-code-tutor/issues"
|
|
34
|
+
},
|
|
35
|
+
"engines": {
|
|
36
|
+
"node": ">=18"
|
|
37
|
+
},
|
|
38
|
+
"scripts": {
|
|
39
|
+
"build": "tsup",
|
|
40
|
+
"build:skills": "tsx scripts/generate-fallback-skills.ts",
|
|
41
|
+
"dev": "tsx src/cli.ts",
|
|
42
|
+
"test": "vitest",
|
|
43
|
+
"prepublishOnly": "npm run build && npm run build:skills"
|
|
44
|
+
},
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"commander": "^12.1.0",
|
|
47
|
+
"cosmiconfig": "^9.0.0",
|
|
48
|
+
"p-limit": "^6.1.0",
|
|
49
|
+
"remark-parse": "^11.0.0",
|
|
50
|
+
"remark-stringify": "^11.0.0",
|
|
51
|
+
"undici": "^6.19.0",
|
|
52
|
+
"unified": "^11.0.5"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@types/node": "^20.14.0",
|
|
56
|
+
"tsup": "^8.1.0",
|
|
57
|
+
"tsx": "^4.15.0",
|
|
58
|
+
"typescript": "^5.5.0",
|
|
59
|
+
"vitest": "^1.6.0"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-agent-teams
|
|
3
|
+
description: "Agent teams en Claude Code: coordinar múltiples sesiones, asignar tareas, hablar con teammates, display modes, token costs."
|
|
4
|
+
invocation: auto
|
|
5
|
+
_pulse: true
|
|
6
|
+
_syncedAt: "2026-04-07T04:44:06.766Z"
|
|
7
|
+
_source: "https://code.claude.com/docs/en/agent-teams.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
|
+
# Orchestrate teams of Claude Code sessions
|
|
15
|
+
|
|
16
|
+
> Coordinate multiple Claude Code instances working together as a team, with shared tasks, inter-agent messaging, and centralized management.
|
|
17
|
+
|
|
18
|
+
Agent teams let you coordinate multiple Claude Code instances working together. One session acts as the team lead, coordinating work, assigning tasks, and synthesizing results. Teammates work independently, each in its own context window, and communicate directly with each other.
|
|
19
|
+
|
|
20
|
+
Unlike [subagents](/en/sub-agents), which run within a single session and can only report back to the main agent, you can also interact with individual teammates directly without going through the lead.
|
|
21
|
+
|
|
22
|
+
This page covers:
|
|
23
|
+
|
|
24
|
+
- [When to use agent teams](#when-to-use-agent-teams), including best use cases and how they compare with subagents
|
|
25
|
+
- [Starting a team](#start-your-first-agent-team)
|
|
26
|
+
- [Controlling teammates](#control-your-agent-team), including display modes, task assignment, and delegation
|
|
27
|
+
- [Best practices for parallel work](#best-practices)
|
|
28
|
+
|
|
29
|
+
## When to use agent teams
|
|
30
|
+
|
|
31
|
+
Agent teams are most effective for tasks where parallel exploration adds real value. See [use case examples](#use-case-examples) for full scenarios. The strongest use cases are:
|
|
32
|
+
|
|
33
|
+
- **Research and review**: multiple teammates can investigate different aspects of a problem simultaneously, then share and challenge each other's findings
|
|
34
|
+
- **New modules or features**: teammates can each own a separate piece without stepping on each other
|
|
35
|
+
- **Debugging with competing hypotheses**: teammates test different theories in parallel and converge on the answer faster
|
|
36
|
+
- **Cross-layer coordination**: changes that span frontend, backend, and tests, each owned by a different teammate
|
|
37
|
+
|
|
38
|
+
Agent teams add coordination overhead and use significantly more tokens than a single session. They work best when teammates can operate independently. For sequential tasks, same-file edits, or work with many dependencies, a single session or [subagents](/en/sub-agents) are more effective.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-best-practices
|
|
3
|
+
description: "Best practices de Claude Code: dar contexto efectivo, gestionar contexto, course-correct, evitar patrones de fallo comunes."
|
|
4
|
+
invocation: auto
|
|
5
|
+
_pulse: true
|
|
6
|
+
_syncedAt: "2026-04-07T04:44:06.766Z"
|
|
7
|
+
_source: "https://code.claude.com/docs/en/best-practices.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
|
+
# Best Practices for Claude Code
|
|
15
|
+
|
|
16
|
+
> Tips and patterns for getting the most out of Claude Code, from configuring your environment to scaling across parallel sessions.
|
|
17
|
+
|
|
18
|
+
Claude Code is an agentic coding environment. Unlike a chatbot that answers questions and waits, Claude Code can read your files, run commands, make changes, and autonomously work through problems while you watch, redirect, or step away entirely.
|
|
19
|
+
|
|
20
|
+
This changes how you work. Instead of writing code yourself and asking Claude to review it, you describe what you want and Claude figures out how to build it. Claude explores, plans, and implements.
|
|
21
|
+
|
|
22
|
+
But this autonomy still comes with a learning curve. Claude works within certain constraints you need to understand.
|
|
23
|
+
|
|
24
|
+
This guide covers patterns that have proven effective across Anthropic's internal teams and for engineers using Claude Code across various codebases, languages, and environments. For how the agentic loop works under the hood, see [How Claude Code works](/en/how-claude-code-works).
|
|
25
|
+
|
|
26
|
+
***
|
|
27
|
+
|
|
28
|
+
Most best practices are based on one constraint: Claude's context window fills up fast, and performance degrades as it fills.
|
|
29
|
+
|
|
30
|
+
Claude's context window holds your entire conversation, including every message, every file Claude reads, and every command output. However, this can fill up fast. A single debugging session or codebase exploration might generate and consume tens of thousands of tokens.
|
|
31
|
+
|
|
32
|
+
This matters since LLM performance degrades as context fills. When the context window is getting full, Claude may start "forgetting" earlier instructions or making more mistakes. The context window is the most important resource to manage. To see how a session fills up in practice, [watch an interactive walkthrough](/en/context-window) of what loads at startup and what each file read costs. Track context usage continuously with a [custom status line](/en/statusline), and see [Reduce token usage](/en/costs#reduce-token-usage) for strategies on reducing token usage.
|
|
33
|
+
|
|
34
|
+
***
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-changelog
|
|
3
|
+
description: "Changelog y novedades recientes de Claude Code. Úsame cuando pregunten qué hay de nuevo, qué cambió en una versión, o qué features se agregaron recientemente."
|
|
4
|
+
invocation: auto
|
|
5
|
+
_pulse: true
|
|
6
|
+
_syncedAt: "2026-04-07T04:44:06.766Z"
|
|
7
|
+
_source: "https://code.claude.com/docs/en/changelog.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
|
+
# Changelog
|
|
15
|
+
|
|
16
|
+
> Release notes for Claude Code, including new features, improvements, and bug fixes by version.
|
|
17
|
+
|
|
18
|
+
This page is generated from the [CHANGELOG.md on GitHub](https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md).
|
|
19
|
+
|
|
20
|
+
Run `claude --version` to check your installed version.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-channels
|
|
3
|
+
description: "Channels en Claude Code: push events a sesiones activas, webhooks, alertas de CI, chat messages desde MCP server."
|
|
4
|
+
invocation: auto
|
|
5
|
+
_pulse: true
|
|
6
|
+
_syncedAt: "2026-04-07T04:44:06.766Z"
|
|
7
|
+
_source: "https://code.claude.com/docs/en/channels.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
|
+
# Push events into a running session with channels
|
|
15
|
+
|
|
16
|
+
> Use channels to push messages, alerts, and webhooks into your Claude Code session from an MCP server. Forward CI results, chat messages, and monitoring events so Claude can react while you're away.
|
|
17
|
+
|
|
18
|
+
A channel is an MCP server that pushes events into your running Claude Code session, so Claude can react to things that happen while you're not at the terminal. Channels can be two-way: Claude reads the event and replies back through the same channel, like a chat bridge. Events only arrive while the session is open, so for an always-on setup you run Claude in a background process or persistent terminal.
|
|
19
|
+
|
|
20
|
+
Unlike integrations that spawn a fresh cloud session or wait to be polled, the event arrives in the session you already have open: see [how channels compare](#how-channels-compare).
|
|
21
|
+
|
|
22
|
+
You install a channel as a plugin and configure it with your own credentials. Telegram, Discord, and iMessage are included in the research preview.
|
|
23
|
+
|
|
24
|
+
When Claude replies through a channel, you see the inbound message in your terminal but not the reply text. The terminal shows the tool call and a confirmation (like "sent"), and the actual reply appears on the other platform.
|
|
25
|
+
|
|
26
|
+
This page covers:
|
|
27
|
+
|
|
28
|
+
- [Supported channels](#supported-channels): Telegram, Discord, and iMessage setup
|
|
29
|
+
- [Install and run a channel](#quickstart) with fakechat, a localhost demo
|
|
30
|
+
- [Who can push messages](#security): sender allowlists and how you pair
|
|
31
|
+
- [Enable channels for your organization](#enterprise-controls) on Team and Enterprise
|
|
32
|
+
- [How channels compare](#how-channels-compare) to web sessions, Slack, MCP, and Remote Control
|
|
33
|
+
|
|
34
|
+
To build your own channel, see the [Channels reference](/en/channels-reference).
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-cli-reference
|
|
3
|
+
description: "Referencia completa CLI de Claude Code: flags, comandos, system prompt flags, opciones de headless."
|
|
4
|
+
invocation: auto
|
|
5
|
+
_pulse: true
|
|
6
|
+
_syncedAt: "2026-04-07T04:44:06.766Z"
|
|
7
|
+
_source: "https://code.claude.com/docs/en/cli-reference.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
|
+
# CLI reference
|
|
15
|
+
|
|
16
|
+
> Complete reference for Claude Code command-line interface, including commands and flags.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-commands
|
|
3
|
+
description: "Comandos built-in de Claude Code: /batch, /debug, /loop, /simplify, /claude-api, /compact, /memory y más."
|
|
4
|
+
invocation: auto
|
|
5
|
+
_pulse: true
|
|
6
|
+
_syncedAt: "2026-04-07T04:44:06.766Z"
|
|
7
|
+
_source: "https://code.claude.com/docs/en/commands.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.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-common-workflows-ask-claude-about-its-capabilities
|
|
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
|
+
## Ask Claude about its capabilities
|
|
10
|
+
|
|
11
|
+
Claude has built-in access to its documentation and can answer questions about its own features and limitations.
|
|
12
|
+
|
|
13
|
+
### Example questions
|
|
14
|
+
|
|
15
|
+
```text theme={null}
|
|
16
|
+
can Claude Code create pull requests?
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
```text theme={null}
|
|
20
|
+
how does Claude Code handle permissions?
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
```text theme={null}
|
|
24
|
+
what skills are available?
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
```text theme={null}
|
|
28
|
+
how do I use MCP with Claude Code?
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
```text theme={null}
|
|
32
|
+
how do I configure Claude Code for Amazon Bedrock?
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
```text theme={null}
|
|
36
|
+
what are the limitations of Claude Code?
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
- Claude always has access to the latest Claude Code documentation, regardless of the version you're using
|
|
40
|
+
- Ask specific questions to get detailed answers
|
|
41
|
+
- Claude can explain complex features like MCP integration, enterprise configurations, and advanced workflows
|
|
42
|
+
|
|
43
|
+
***
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-common-workflows-create-pull-requests
|
|
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
|
+
## Create pull requests
|
|
10
|
+
|
|
11
|
+
You can create pull requests by asking Claude directly ("create a pr for my changes"), or guide Claude through it step-by-step:
|
|
12
|
+
|
|
13
|
+
<Step title="Generate a pull request">
|
|
14
|
+
```text theme={null}
|
|
15
|
+
create a pr
|
|
16
|
+
```
|
|
17
|
+
</Step>
|
|
18
|
+
|
|
19
|
+
<Step title="Review and refine">
|
|
20
|
+
```text theme={null}
|
|
21
|
+
enhance the PR description with more context about the security improvements
|
|
22
|
+
```
|
|
23
|
+
</Step>
|
|
24
|
+
</Steps>
|
|
25
|
+
|
|
26
|
+
When you create a PR using `gh pr create`, the session is automatically linked to that PR. You can resume it later with `claude --from-pr <number>`.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-common-workflows-fix-bugs-efficiently
|
|
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
|
+
## Fix bugs efficiently
|
|
10
|
+
|
|
11
|
+
Suppose you've encountered an error message and need to find and fix its source.
|
|
12
|
+
|
|
13
|
+
<Step title="Ask for fix recommendations">
|
|
14
|
+
```text theme={null}
|
|
15
|
+
suggest a few ways to fix the @ts-ignore in user.ts
|
|
16
|
+
```
|
|
17
|
+
</Step>
|
|
18
|
+
|
|
19
|
+
<Step title="Apply the fix">
|
|
20
|
+
```text theme={null}
|
|
21
|
+
update user.ts to add the null check you suggested
|
|
22
|
+
```
|
|
23
|
+
</Step>
|
|
24
|
+
</Steps>
|
|
25
|
+
|
|
26
|
+
- Tell Claude the command to reproduce the issue and get a stack trace
|
|
27
|
+
- Mention any steps to reproduce the error
|
|
28
|
+
- Let Claude know if the error is intermittent or consistent
|
|
29
|
+
|
|
30
|
+
***
|
package/skills-fallback/cc-common-workflows-get-notified-when-claude-needs-your-attention/SKILL.md
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-common-workflows-get-notified-when-claude-needs-your-attention
|
|
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
|
+
## Get notified when Claude needs your attention
|
|
10
|
+
|
|
11
|
+
When you kick off a long-running task and switch to another window, you can set up desktop notifications so you know when Claude finishes or needs your input. This uses the `Notification` [hook event](/en/hooks-guide#get-notified-when-claude-needs-input), which fires whenever Claude is waiting for permission, idle and ready for a new prompt, or completing authentication.
|
|
12
|
+
|
|
13
|
+
````
|
|
14
|
+
<Tabs>
|
|
15
|
+
<Tab title="macOS">
|
|
16
|
+
```json theme={null}
|
|
17
|
+
{
|
|
18
|
+
"hooks": {
|
|
19
|
+
"Notification": [
|
|
20
|
+
{
|
|
21
|
+
"matcher": "",
|
|
22
|
+
"hooks": [
|
|
23
|
+
{
|
|
24
|
+
"type": "command",
|
|
25
|
+
"command": "osascript -e 'display notification \"Claude Code needs your attention\" with title \"Claude Code\"'"
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
</Tab>
|
|
34
|
+
|
|
35
|
+
<Tab title="Linux">
|
|
36
|
+
```json theme={null}
|
|
37
|
+
{
|
|
38
|
+
"hooks": {
|
|
39
|
+
"Notification": [
|
|
40
|
+
{
|
|
41
|
+
"matcher": "",
|
|
42
|
+
"hooks": [
|
|
43
|
+
{
|
|
44
|
+
"type": "command",
|
|
45
|
+
"command": "notify-send 'Claude Code' 'Claude Code needs your attention'"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
```
|
|
53
|
+
</Tab>
|
|
54
|
+
|
|
55
|
+
<Tab title="Windows">
|
|
56
|
+
```json theme={null}
|
|
57
|
+
{
|
|
58
|
+
"hooks": {
|
|
59
|
+
"Notification": [
|
|
60
|
+
{
|
|
61
|
+
"matcher": "",
|
|
62
|
+
"hooks": [
|
|
63
|
+
{
|
|
64
|
+
"type": "command",
|
|
65
|
+
"command": "powershell.exe -Command \"[System.Reflection.Assembly]::LoadWithPartialName('System.Windows.Forms'); [System.Windows.Forms.MessageBox]::Show('Claude Code needs your attention', 'Claude Code')\""
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
```
|
|
73
|
+
</Tab>
|
|
74
|
+
</Tabs>
|
|
75
|
+
|
|
76
|
+
If your settings file already has a `hooks` key, merge the `Notification` entry into it rather than overwriting. You can also ask Claude to write the hook for you by describing what you want in the CLI.
|
|
77
|
+
````
|
|
78
|
+
|
|
79
|
+
</Step>
|
|
80
|
+
|
|
81
|
+
<Step title="Optionally narrow the matcher">
|
|
82
|
+
By default the hook fires on all notification types. To fire only for specific events, set the `matcher` field to one of these values:
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
| Matcher | Fires when |
|
|
86
|
+
| :------------------- | :---------------------------------------------- |
|
|
87
|
+
| `permission_prompt` | Claude needs you to approve a tool use |
|
|
88
|
+
| `idle_prompt` | Claude is done and waiting for your next prompt |
|
|
89
|
+
| `auth_success` | Authentication completes |
|
|
90
|
+
| `elicitation_dialog` | Claude is asking you a question |
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
</Step>
|
|
94
|
+
|
|
95
|
+
<Step title="Verify the hook">
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-common-workflows-handle-documentation
|
|
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
|
+
## Handle documentation
|
|
10
|
+
|
|
11
|
+
Suppose you need to add or update documentation for your code.
|
|
12
|
+
|
|
13
|
+
<Step title="Generate documentation">
|
|
14
|
+
```text theme={null}
|
|
15
|
+
add JSDoc comments to the undocumented functions in auth.js
|
|
16
|
+
```
|
|
17
|
+
</Step>
|
|
18
|
+
|
|
19
|
+
<Step title="Review and enhance">
|
|
20
|
+
```text theme={null}
|
|
21
|
+
improve the generated documentation with more context and examples
|
|
22
|
+
```
|
|
23
|
+
</Step>
|
|
24
|
+
|
|
25
|
+
<Step title="Verify documentation">
|
|
26
|
+
```text theme={null}
|
|
27
|
+
check if the documentation follows our project standards
|
|
28
|
+
```
|
|
29
|
+
</Step>
|
|
30
|
+
</Steps>
|
|
31
|
+
|
|
32
|
+
- Specify the documentation style you want (JSDoc, docstrings, etc.)
|
|
33
|
+
- Ask for examples in the documentation
|
|
34
|
+
- Request documentation for public APIs, interfaces, and complex logic
|
|
35
|
+
|
|
36
|
+
***
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-common-workflows-next-steps
|
|
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
|
+
## Next steps
|
|
10
|
+
|
|
11
|
+
<Card title="How Claude Code works" icon="gear" href="/en/how-claude-code-works">
|
|
12
|
+
Understand the agentic loop and context management
|
|
13
|
+
</Card>
|
|
14
|
+
|
|
15
|
+
<Card title="Extend Claude Code" icon="puzzle-piece" href="/en/features-overview">
|
|
16
|
+
Add skills, hooks, MCP, subagents, and plugins
|
|
17
|
+
</Card>
|
|
18
|
+
|
|
19
|
+
<Card title="Reference implementation" icon="code" href="https://github.com/anthropics/claude-code/tree/main/.devcontainer">
|
|
20
|
+
Clone the development container reference implementation
|
|
21
|
+
</Card>
|
|
22
|
+
</CardGroup>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-common-workflows-refactor-code
|
|
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
|
+
## Refactor code
|
|
10
|
+
|
|
11
|
+
Suppose you need to update old code to use modern patterns and practices.
|
|
12
|
+
|
|
13
|
+
<Step title="Get refactoring recommendations">
|
|
14
|
+
```text theme={null}
|
|
15
|
+
suggest how to refactor utils.js to use modern JavaScript features
|
|
16
|
+
```
|
|
17
|
+
</Step>
|
|
18
|
+
|
|
19
|
+
<Step title="Apply the changes safely">
|
|
20
|
+
```text theme={null}
|
|
21
|
+
refactor utils.js to use ES2024 features while maintaining the same behavior
|
|
22
|
+
```
|
|
23
|
+
</Step>
|
|
24
|
+
|
|
25
|
+
<Step title="Verify the refactoring">
|
|
26
|
+
```text theme={null}
|
|
27
|
+
run tests for the refactored code
|
|
28
|
+
```
|
|
29
|
+
</Step>
|
|
30
|
+
</Steps>
|
|
31
|
+
|
|
32
|
+
- Ask Claude to explain the benefits of the modern approach
|
|
33
|
+
- Request that changes maintain backward compatibility when needed
|
|
34
|
+
- Do refactoring in small, testable increments
|
|
35
|
+
|
|
36
|
+
***
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-common-workflows-reference-files-and-directories
|
|
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
|
+
## Reference files and directories
|
|
10
|
+
|
|
11
|
+
Use @ to quickly include files or directories without waiting for Claude to read them.
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
This includes the full content of the file in the conversation.
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
</Step>
|
|
18
|
+
|
|
19
|
+
<Step title="Reference a directory">
|
|
20
|
+
```text theme={null}
|
|
21
|
+
What's the structure of @src/components?
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
This provides a directory listing with file information.
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
</Step>
|
|
29
|
+
|
|
30
|
+
<Step title="Reference MCP resources">
|
|
31
|
+
```text theme={null}
|
|
32
|
+
Show me the data from @github:repos/owner/repo/issues
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
This fetches data from connected MCP servers using the format @server:resource. See [MCP resources](/en/mcp#use-mcp-resources) for details.
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
</Step>
|
|
40
|
+
</Steps>
|
|
41
|
+
|
|
42
|
+
- File paths can be relative or absolute
|
|
43
|
+
- @ file references add `CLAUDE.md` in the file's directory and parent directories to context
|
|
44
|
+
- Directory references show file listings, not contents
|
|
45
|
+
- You can reference multiple files in a single message (for example, "@file1.js and @file2.js")
|
|
46
|
+
|
|
47
|
+
***
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cc-common-workflows-resume-previous-conversations
|
|
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
|
+
## Resume previous conversations
|
|
10
|
+
|
|
11
|
+
When starting Claude Code, you can resume a previous session:
|
|
12
|
+
|
|
13
|
+
- `claude --continue` continues the most recent conversation in the current directory
|
|
14
|
+
- `claude --resume` opens a conversation picker or resumes by name
|
|
15
|
+
- `claude --from-pr 123` resumes sessions linked to a specific pull request
|
|
16
|
+
|
|
17
|
+
From inside an active session, use `/resume` to switch to a different conversation.
|
|
18
|
+
|
|
19
|
+
Sessions are stored per project directory. The `/resume` picker shows interactive sessions from the same git repository, including worktrees. Sessions created by `claude -p` or SDK invocations do not appear in the picker, but you can still resume one by passing its session ID directly to `claude --resume <session-id>`.
|
|
20
|
+
|
|
21
|
+
### Name your sessions
|
|
22
|
+
|
|
23
|
+
Give sessions descriptive names to find them later. This is a best practice when working on multiple tasks or features.
|
|
24
|
+
|
|
25
|
+
````
|
|
26
|
+
```bash theme={null}
|
|
27
|
+
claude -n auth-refactor
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Or use `/rename` during a session, which also shows the name on the prompt bar:
|
|
31
|
+
|
|
32
|
+
```text theme={null}
|
|
33
|
+
/rename auth-refactor
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
You can also rename any session from the picker: run `/resume`, navigate to a session, and press `R`.
|
|
37
|
+
````
|
|
38
|
+
|
|
39
|
+
</Step>
|
|
40
|
+
|
|
41
|
+
<Step title="Resume by name later">
|
|
42
|
+
From the command line:
|
|
43
|
+
|
|
44
|
+
````
|
|
45
|
+
```bash theme={null}
|
|
46
|
+
claude --resume auth-refactor
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Or from inside an active session:
|
|
50
|
+
|
|
51
|
+
```text theme={null}
|
|
52
|
+
/resume auth-refactor
|
|
53
|
+
```
|
|
54
|
+
````
|
|
55
|
+
|
|
56
|
+
</Step>
|
|
57
|
+
</Steps>
|