### Install and Run Playwright MCP Source: https://github.com/lazenca-liqiuqi/lazenca-cc-component/blob/main/commands/init-mcp.md This command uses npx to install the latest version of the Playwright MCP package and run it. This is a common way to manage and execute Node.js packages. ```bash npx @playwright/mcp@latest ``` -------------------------------- ### Example Project Execution Plan Source: https://github.com/lazenca-liqiuqi/lazenca-cc-component/blob/main/CLAUDE.md Illustrates a typical execution plan for project tasks, demonstrating the sequence of agent calls and their respective responsibilities, including mandatory linked tasks. ```markdown 这是为您制定的执行计划(已满足强制连携规则),是否清晰准确?在开始执行前,您希望做任何调整吗? ### 执行计划 - **[TODO-1]** 调用 `Codebase Analyzer`:全面分析现有项目结构和代码。 - **[TODO-2]** 调用 `Memorizer`:根据分析结果,更新项目的 `CLAUDE.md` 上下文。(*强制连携规则触发*) - **[TODO-3]** 调用 `Coder`:在 `main.py` 文件中添加 `hello_world` 函数。 - **[TODO-4]** 调用 `Code Commenter`:为 `hello_world` 函数添加标准注释。(*强制连携规则触发*) - **[TODO-5]** 调用 `Document Manager`:更新项目文档,说明新增的函数功能。 - **[TODO-6]** 调用 `Log Record`:总结这次工作并记入日志。 ``` -------------------------------- ### CLAUDE.md Root Directory Structure Example Source: https://github.com/lazenca-liqiuqi/lazenca-cc-component/blob/main/agents/Memorizer.md This example demonstrates the expected Markdown format for a CLAUDE.md file in the root directory. It includes a project overview, a directory structure listing with file and directory types, and a section for MCP servers. ```Markdown # 我的项目 ## 🚀 项目概览 这是用户手动编写的概览,更新时必须保留。 ## 🌳 目录结构 D:\... ├── CLAUDE.md # 本说明文件 ├── api/ # API相关模块 (目录) ├── main.py # 主程序入口 (新文件) └── utils.py # 工具函数 ## 🖥️ 可用MCP服务器 - mcp-new-server.com # mcp服务器介绍 ``` -------------------------------- ### Codebase Analyzer: Example Report Output Source: https://github.com/lazenca-liqiuqi/lazenca-cc-component/blob/main/agents/Codebase Analyzer.md This example illustrates the expected output format of the Codebase Analyzer's report, showcasing how changes to CLAUDE.md files are presented, including file operations, change summaries, and the final tree structure with comments. ```Markdown 我已经完成了对代码库的变更分析,以下是需要对 `CLAUDE.md` 文件进行的修改建议: ### **文件: `src/CLAUDE.md`** **操作:** 更新 **变更摘要:** - **删除:** `main.py` - **新增:** `app.py`, `api/` **建议内容:** ```markdown ├── CLAUDE.md # 本说明文件 ├── api/ # 新增:API相关模块 (目录) └── app.py # 新增:新的应用主入口 ``` ### **文件: `src/api/CLAUDE.md`** **操作:** 创建 **变更摘要:** - **新增:** 这是一个全新的文档文件。 **建议内容:** ```markdown ├── CLAUDE.md # 本说明文件 └── index.js # 新增:API默认导出文件 ``` 报告结束。 ``` -------------------------------- ### Run Python MCP Server Source: https://github.com/lazenca-liqiuqi/lazenca-cc-component/blob/main/commands/init-mcp.md This command executes a Python script to start an MCP server. It specifies the Python interpreter and the path to the server script. ```bash python D:/Others(English)/MCP/Office-Word-MCP-Server/word_mcp_server.py ``` -------------------------------- ### Conversation Start Voice Hook Source: https://github.com/lazenca-liqiuqi/lazenca-cc-component/blob/main/README.md A Python hook designed to deliver a welcome message via voice when a new conversation begins. ```Python conversation_start_voice.py ``` -------------------------------- ### Python Code with Chinese Comments Source: https://github.com/lazenca-liqiuqi/lazenca-cc-component/blob/main/agents/Code Explainer.md This snippet demonstrates how to add detailed Chinese comments to a Python function. It includes single-line comments for simple explanations and multi-line docstrings for functions, modules, or complex logic. The example function `calculate_tax` shows how to handle input validation and perform calculations with comments explaining each step. ```Python def calculate_tax(amount, rate): """ 计算给定金额的税额。 该函数首先会扣除20%的免税额,然后根据剩余金额计算税款。 :param amount: float, 总金额。 :param rate: float, 税率,应为0到1之间的小数。 :return: float, 计算出的税额。 """ # 如果金额小于等于0,则无需缴税 if amount <= 0: return 0 # 计算应税金额(总金额的80%) taxable_amount = amount * 0.8 # 返回最终税额 return taxable_amount * rate ``` -------------------------------- ### Run Serena MCP Server with UV Source: https://github.com/lazenca-liqiuqi/lazenca-cc-component/blob/main/commands/init-mcp.md This command uses the 'uv' command to run the Serena MCP server. It specifies the directory containing the server and the server's entry point. ```bash uv run --directory D:\Others(English)\MCP\serena serena-mcp-server ``` -------------------------------- ### Project Initialization Command Source: https://github.com/lazenca-liqiuqi/lazenca-cc-component/blob/main/README.md This command is used to initialize a new project within the Claude Code environment. It is part of the custom commands provided by the Lazenca CC Component. ```Shell init-project ``` -------------------------------- ### Run Git MCP Remote Source: https://github.com/lazenca-liqiuqi/lazenca-cc-component/blob/main/commands/init-mcp.md This command uses npx to execute the 'mcp-remote' command, likely for connecting to a remote MCP service hosted on Git. It includes a placeholder for owner and repository. ```bash npx mcp-remote https://gitmcp.io/{owner}/{repo} ``` -------------------------------- ### Run Sequential Thinking MCP Source: https://github.com/lazenca-liqiuqi/lazenca-cc-component/blob/main/commands/init-mcp.md This command uses npx to run the sequential thinking MCP server, specifying the package name with the '-y' flag for automatic confirmation. ```bash npx -y @modelcontextprotocol/server-sequential-thinking ``` -------------------------------- ### Generate README.md Template Source: https://github.com/lazenca-liqiuqi/lazenca-cc-component/blob/main/agents/Document Manager.md Generates a complete template for the README.md file, including seven core AI-managed sections and placeholders for user-specific content. This is used when the README.md file does not exist. ```Markdown # [项目名称 - 由用户填写] 上次更新时间:2025.1.1 ## 1. TODO List - [ ] 整理第三批实验数据并进行初步可视化。 *用户可在此手动添加或勾选任务* ## 2. 定期更新速查表 | 日期 | 更新内容 | | -------- | ------------ | | 2025.1.1 | 更新了某某内容 | | 2025.1.8 | 更新了某某内容 | ## 3. 文献调研 - **Vaswani et al., 2017:** "Attention Is All You Need". 重点: Multi-Head Attention。引用Key: `vaswani2017attention`。笔记: `[link](/notes/lit/vaswani.md)` ## 4. 项目基本信息 这是一个伟大的项目 ## 5. 全面的项目工具列表 - **数据来源:** ... - **技术路线:** ... - **技术栈:** Python, PyTorch, Pandas ## 6. 变量表 (简写与符号) | 符号/缩写 | 含义 | | -------- | ------------ | | `α` | 代表学习率 (learning rate) | ​ ​ ## 7. 项目进展记录 ​ 模型A的初步训练已完成。在内部测试集上,模型表现出良好的收敛性,最终达到了85%的分类准确率。详细的损失变化过程已被记录。 ​ ### 成果展示 (由用户填写) *用户可在此处嵌入图片、表格或关键发现* ``` -------------------------------- ### Final Project Report Format Source: https://github.com/lazenca-liqiuqi/lazenca-cc-component/blob/main/CLAUDE.md Defines the standard Markdown format for delivering the final project report after all tasks have been successfully executed by the sub-agents. ```markdown ### 最终报告 所有任务已成功执行完毕。 - **[任务1]**: `[子代理名称]` 已完成 [具体任务描述]。 - **[任务2]**: `[子代理名称]` 已完成 [具体任务描述]。 项目当前状态:[简要总结]。 ``` -------------------------------- ### Configure MCP Servers Source: https://github.com/lazenca-liqiuqi/lazenca-cc-component/blob/main/commands/init-mcp.md This JSON configuration defines various MCP servers, including their types (stdio or http), commands, arguments, environment variables, and headers. It serves as a central configuration for different MCP services. ```json { "mcpServers": { "word-document-server": { "command": "python", "args": [ "D:/Others(English)/MCP/Office-Word-MCP-Server/word_mcp_server.py" ], "env": { "MCP_TRANSPORT": "stdio" } }, "github": { "type": "http", "url": "https://api.githubcopilot.com/mcp", "headers": { "Authorization": "GITHUB_PERSONAL_ACCESS_TOKEN=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" } }, "playwright": { "type": "stdio", "command": "npx", "args": [ "@playwright/mcp@latest" ], "env": {} }, "microsoft_docs_mcp": { "type": "http", "url": "https://learn.microsoft.com/api/mcp" }, "deepwiki": { "type": "http", "url": "https://mcp.deepwiki.com/mcp" }, "hf-mcp-server": { "type": "http", "url": "https://huggingface.co/mcp", "headers": { "Authorization": "Bearer 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" } }, "typst-mcp": { "type": "stdio", "command": "python", "args": [ "D:\\Others(English)\\MCP\\typst-mcp\\server.py" ], "env": {} }, "serena": { "command": "uv", "args": [ "run", "--directory", "D:\\Others(English)\\MCP\\serena", "serena-mcp-server" ] }, "aihubmix-api": { "type": "http", "url": "https://aihubmix.com/mcp/", "headers": { "Authorization": "Bearer sk-x5mwr3r4PtDKudpmEaC4F73bFfC64f5391AcD3E923440e8c" } }, "gitmcp": { "command": "npx", "args": [ "mcp-remote", "https://gitmcp.io/{owner}/{repo}" ] }, "sequential-thinking": { "args": [ "-y", "@modelcontextprotocol/server-sequential-thinking" ], "command": "npx" } } } ``` -------------------------------- ### Model Switching Command Source: https://github.com/lazenca-liqiuqi/lazenca-cc-component/blob/main/README.md This command allows users to switch between different AI models supported by the Claude Code system. ```Shell change-model ``` -------------------------------- ### Memorizer Output Report Format Source: https://github.com/lazenca-liqiuqi/lazenca-cc-component/blob/main/agents/Memorizer.md This Markdown format outlines the required structure for Memorizer's output report. It details how to present changes for each CLAUDE.md file, including its path, the operation performed (create/update), and a summary of changes. ```Markdown [你的开场白,例如:我已经完成了对项目分析报告的处理...] [对于某个目录下的CLAUDE.md] ### **文件: `[文件的相对路径]`** **操作:** [创建 / 更新] **变更摘要:** - [描述变更点1,例如:新增文件 'main.py' 的条目] - [描述变更点2,例如:移除了已删除文件 'old_api.py' 的条目] [对于另一个目录下的CLAUDE.md] ... [为下一个需要操作的文件重复以上块] [你的结束语,例如:报告结束。] ``` -------------------------------- ### Navigation Command Source: https://github.com/lazenca-liqiuqi/lazenca-cc-component/blob/main/README.md A command to quickly navigate through projects or directories within the Claude Code environment. ```Shell go ``` -------------------------------- ### Claude Code Configuration File Source: https://github.com/lazenca-liqiuqi/lazenca-cc-component/blob/main/README.md The main configuration file for Claude Code, containing settings for the Lazenca CC Component. ```JSON settings.json ``` -------------------------------- ### Python Interpreter Path Configuration Source: https://github.com/lazenca-liqiuqi/lazenca-cc-component/blob/main/CLAUDE.md Specifies the default Python interpreter path for the project environment, crucial for script execution and dependency management. ```shell C:\Users\pc\miniconda3\python.exe ``` -------------------------------- ### Alternative Configuration for setting.json Source: https://github.com/lazenca-liqiuqi/lazenca-cc-component/blob/main/commands/change-model.md Provides alternative configurations for various AI models (Kimi, Claude, GLM, Deepseek) to be used in a setting.json file. Each configuration includes ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN, ANTHROPIC_MODEL, and ANTHROPIC_SMALL_FAST_MODEL. ```json "ANTHROPIC_BASE_URL": "https://api.moonshot.cn/anthropic/", "ANTHROPIC_AUTH_TOKEN": "sk-eJ2bFotPeaSjJ6qhx7CtMCJ2hof1xFpv3rNoqhrBqSRkgCY2" "ANTHROPIC_MODEL":"kimi-k2-turbo-preview" "ANTHROPIC_SMALL_FAST_MODEL":"kimi-k2-turbo-preview" ``` ```json "ANTHROPIC_BASE_URL": "https://api.wentuo.ai", "ANTHROPIC_AUTH_TOKEN": "sk-hiEi8inFbUOKsjoAxRV7Zdy8hFXF201PsMAcLIFCW1F100z1" ``` ```json "ANTHROPIC_BASE_URL":"https://open.bigmodel.cn/api/anthropic" , "ANTHROPIC_AUTH_TOKEN":"43632cc392ed478783266f5c0e4cb330.RebbA38cPxJLSVTr", "ANTHROPIC_MODEL": "glm-4.5" "ANTHROPIC_SMALL_FAST_MODEL":"glm-4.5" ``` ```json "ANTHROPIC_BASE_URL":"https://api.deepseek.com/anthropic" "ANTHROPIC_AUTH_TOKEN":"sk-8c6697412ccd45b289912efe2ff909d5" "ANTHROPIC_MODEL":"deepseek-chat" "ANTHROPIC_SMALL_FAST_MODEL":"deepseek-chat" ``` -------------------------------- ### Update README.md with Project Logs Source: https://github.com/lazenca-liqiuqi/lazenca-cc-component/blob/main/agents/Document Manager.md Updates specific sections of the README.md file based on parsed project logs. It appends new information to TODO lists, meeting minutes, literature reviews, tool lists, variable tables, and progress logs, while also handling the removal of completed tasks. ```Markdown [TODO] 整理第三批实验数据并进行初步可视化。 [MEETING] 2023-10-28 与导师会议:确定下一步研究重点是模型B的参数优化。 [LIT] 阅读论文 "Attention Is All You Need" (Vaswani et al., 2017),引用key: `vaswani2017attention`。主要关注其Multi-Head Attention机制。笔记文件: `/notes/lit/vaswani.md` [PROGRESS] 模型A的初步训练完成,在测试集上达到85%的准确率。损失曲线图已保存至 `/results/model_A_loss.png`。 [VAR] `α`: 代表学习率 (learning rate)。 ``` -------------------------------- ### Set Kimi Environment Variables (PowerShell) Source: https://github.com/lazenca-liqiuqi/lazenca-cc-component/blob/main/commands/change-model.md Configures the ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN, ANTHROPIC_MODEL, and ANTHROPIC_SMALL_FAST_MODEL environment variables for the Kimi model using PowerShell. ```powershell setx ANTHROPIC_BASE_URL "https://api.moonshot.cn/anthropic/" setx ANTHROPIC_AUTH_TOKEN "sk-eJ2bFotPeaSjJ6qhx7CtMCJ2hof1xFpv3rNoqhrBqSRkgCY2" setx ANTHROPIC_MODEL "kimi-k2-turbo-preview" setx ANTHROPIC_SMALL_FAST_MODEL "kimi-k2-turbo-preview" ``` -------------------------------- ### Document Conversion Command Source: https://github.com/lazenca-liqiuqi/lazenca-cc-component/blob/main/README.md A utility command to convert documents, likely to a Word format, as part of the project management features. ```Shell convert2word ``` -------------------------------- ### Task Completion Voice Hook Source: https://github.com/lazenca-liqiuqi/lazenca-cc-component/blob/main/README.md This Python hook provides voice feedback upon task completion, enhancing the user experience with auditory notifications. ```Python task_complete_voice.py ``` -------------------------------- ### Generate Citation Mapping with Python Source: https://github.com/lazenca-liqiuqi/lazenca-cc-component/blob/main/commands/convert2word_step1.md Generates a citation mapping from a BibTeX file to a Markdown file. This script helps in creating a reference table for citation conversion. It supports specifying output file paths and verbose logging. ```Python python generate_citation_mapping.py [options] Parameters: bibtex_file Path to the BibTeX file Options: -h, --help Show this help message -o, --output Output Markdown file path (default: citation_mapping.md) -v, --verbose Show verbose information -a, --append Append to the output file instead of overwriting ``` -------------------------------- ### Codebase Analyzer: Markdown Report Structure Source: https://github.com/lazenca-liqiuqi/lazenca-cc-component/blob/main/agents/Codebase Analyzer.md This snippet demonstrates the required Markdown structure for the Codebase Analyzer's output report. It includes sections for file operations, change summaries, and the formatted tree structure of directory and file contents. ```Markdown ### **文件: `[需要操作的文件的相对路径]`** **操作:** [创建 / 更新] **变更摘要:** - [描述变更点1,例如:**新增:** `file.py`, `dir/`] - [描述变更点2,例如:**删除:** `old_file.py`] **建议内容:** [此处放入遵循规则3生成的、包含换行符的完整树状结构字符串] ``` -------------------------------- ### Apply Citation Mapping to Typst Files with Python Source: https://github.com/lazenca-liqiuqi/lazenca-cc-component/blob/main/commands/convert2word_step1.md Applies a citation mapping (from Markdown or JSON) to a Typst input file. This script performs the final conversion of citations in the Typst document. It supports saving mappings as JSON and previewing changes. ```Python python apply_citation_mapping.py [options] Parameters: mapping_file Path to the citation mapping file (Markdown or JSON format) input_file Path to the input file to process Options: -h, --help Show this help message -o, --output Output file path (optional, defaults to console output) --json FILE Save the mapping table to a JSON file --preview Only preview changes, do not process the file --max-preview NUM Maximum number of changes to preview (default: 10) -v, --verbose Show verbose information ``` -------------------------------- ### Notification Hook for User Permission Source: https://github.com/lazenca-liqiuqi/lazenca-cc-component/blob/main/README.md A Python hook function that handles voice broadcasting for user permissions, contributing to the voice interaction features. ```Python notification.py ``` -------------------------------- ### Set Deepseek Environment Variables (PowerShell) Source: https://github.com/lazenca-liqiuqi/lazenca-cc-component/blob/main/commands/change-model.md Configures the ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN, ANTHROPIC_MODEL, and ANTHROPIC_SMALL_FAST_MODEL environment variables for the Deepseek model using PowerShell. ```powershell setx ANTHROPIC_BASE_URL "https://api.deepseek.com/anthropic" setx ANTHROPIC_AUTH_TOKEN "sk-8c6697412ccd45b289912efe2ff909d5" setx ANTHROPIC_MODEL "deepseek-chat" setx ANTHROPIC_SMALL_FAST_MODEL "deepseek-chat" ``` -------------------------------- ### Replace Citations in Typst Files with Python Source: https://github.com/lazenca-liqiuqi/lazenca-cc-component/blob/main/commands/convert2word_step1.md Replaces citation placeholders within a Typst file. This script is a crucial step in the citation conversion process, preparing the Typst file for mapping application. It allows for output file specification and verbose output. ```Python python replace.py [options] Parameters: input_file Path to the Typst file Options: -h, --help Show this help message -o, --output Output Markdown file path (default: citation_mapping.md) -v, --verbose Show verbose information -a, --append Append to the output file instead of overwriting (required) ``` -------------------------------- ### Set Claude Environment Variables (PowerShell) Source: https://github.com/lazenca-liqiuqi/lazenca-cc-component/blob/main/commands/change-model.md Configures the ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN, ANTHROPIC_MODEL, and ANTHROPIC_SMALL_FAST_MODEL environment variables for the Claude model using PowerShell. ```powershell setx ANTHROPIC_BASE_URL "https://api.wentuo.ai" setx ANTHROPIC_AUTH_TOKEN "sk-hiEi8inFbUOKsjoAxRV7Zdy8hFXF201PsMAcLIFCW1F100z1" setx ANTHROPIC_MODEL "" setx ANTHROPIC_SMALL_FAST_MODEL "" ``` -------------------------------- ### Set GLM Environment Variables (PowerShell) Source: https://github.com/lazenca-liqiuqi/lazenca-cc-component/blob/main/commands/change-model.md Configures the ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN, ANTHROPIC_MODEL, and ANTHROPIC_SMALL_FAST_MODEL environment variables for the GLM model using PowerShell. ```powershell setx ANTHROPIC_BASE_URL "https://open.bigmodel.cn/api/anthropic" setx ANTHROPIC_AUTH_TOKEN "43632cc392ed478783266f5c0e4cb330.RebbA38cPxJLSVTr" setx ANTHROPIC_MODEL "glm-4.5" setx ANTHROPIC_SMALL_FAST_MODEL "glm-4.5" ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.