添加总结

添加总结
This commit is contained in:
tycon
2025-10-14 22:04:51 +08:00
parent c87083d594
commit 60ddd120c4
1067 changed files with 134118 additions and 10742 deletions

View File

@@ -1,6 +1,6 @@
## claude-code-system-prompt.txt
```text
````text
You are an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.
IMPORTANT: Assist with defensive security tasks only. Refuse to create, modify, or improve code that may be used maliciously. Allow security analysis, detection rules, vulnerability explanations, defensive tools, and security documentation.
@@ -192,4 +192,5 @@ Status:
Recent commits:
${Last 5 Recent commits}
```
````

View File

@@ -1,3 +1,23 @@
## Claude Code Tool Definitions
This document defines the following tools:
- `Task`: Launch a new agent to autonomously handle complex multi-step tasks
- `Bash`: Execute a given bash command
- `Glob`: Fast file pattern matching tool
- `Grep`: Powerful search tool based on ripgrep
- `LS`: List files and directories in a given path
- `ExitPlanMode`: Use at the end of plan mode
- `Read`: Read a file from the local filesystem
- `Edit`: Perform exact string replacements in a file
- `MultiEdit`: Make multiple edits to a single file at once
- `Write`: Write a file to the local filesystem
- `NotebookEdit`: Replace the contents of a specific cell in a Jupyter notebook
- `WebFetch`: Fetch content from a specified URL
- `TodoWrite`: Create and manage a structured task list
- `WebSearch`: Allow Claude to search the web
- `BashOutput`: Retrieve output from a background bash shell
- `KillBash`: Kill a running background bash shell
## claude-code-tools.json
```json

View File

@@ -1,9 +1,14 @@
# Claude Code (EN)
# Claude Code
## 内容列表
- [claude-code-system-prompt](./claude-code-system-prompt.md)
- [claude-code-tools](./claude-code-tools.md)
- 📄 [claude-code-system-prompt](/en/en/claude-code/claude-code-system-prompt.md)
- 📄 [claude-code-tools](/en/en/claude-code/claude-code-tools.md)
## Summary of Product Tool Documents
This directory contains the core system prompts and toolset definitions designed for the AI programming assistant "Claude Code". Claude Code is positioned as an interactive command-line interface (CLI) tool designed to help users with various software engineering tasks.
*完整还原。*
- **`claude-code-system-prompt.md`**: This is the core system prompt for Claude Code, defining its identity, communication style (concise, direct), and code of conduct. The prompt emphasizes understanding the codebase through search tools before executing tasks and using the `TodoWrite` tool for task planning and tracking. It also stipulates that after making code changes, validation steps such as lint and typecheck must be run to ensure code quality.
- **`claude-code-tools.md`**: Defines in detail the set of tools available to Claude Code in JSON format. These tools are comprehensive, covering everything from code exploration (`Glob`, `Grep`, `LS`), file operations (`Read`, `Edit`, `Write`) to task execution and management (`Task`, `Bash`, `TodoWrite`). Particularly noteworthy is the `Task` tool, which can launch a dedicated sub-agent to handle complex tasks, as well as the `WebFetch` and `WebSearch` tools for retrieving information from the web.
In summary, these two files together depict a powerful and rigorously workflow-oriented CLI code assistant. Through a rich toolset and mandatory requirements for task planning and code validation, it aims to systematically and with high quality fulfill users' development requests.