环境:

OS: Windows 11
IDE:TREA
Model: Sonnet / Qwen (免费 Token 用完)

参考:

Claude Code Beginner Guide – Get Started in 20 Minutes (2025) 

by Alex Finn 油管博客

https://www.youtube.com/watch?v=iYiuzAsWnHU&list=TLGG1L6Rr9WQcXAwNzA5MjAyNQ

可以试试:https://cobalt.tools/  下载。

正文:

一、安装 Claude Code (以后用 CC 代替)

参考我之前的文章: https://blog.csdn.net/davenian/article/details/148855154 

二、使用 QwenCode 代替 Sonnet

阿里有免费 90 天 Token,什么事儿还没做 token 用了 30%,推荐 GLM  20块充值包。它们的方法都一样, 给 CC 一个接口 URL, 然后是 API 格式的 KEY

TREA/Cursor 都是调用 PowerShell,我是用 npm 安装的 CC ,第一次要在终端里运行“Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser" 再执行 claude 来运行 CC

引自 秋芝:https://ccnk05wgo092.feishu.cn/wiki/BxLTwlkvkiQhJkkJ7vgc95aZnMe

三、用 CC 制作一个日历

1 告诉要做什么

prompt: 
i want to build a calendar app using next.js. it should show a calender view of this week and make it so i can create new events and assign dates and times to the events. it should be a realty beautiful app.  

用中文也一样,提示词:

我想使用 Next.js 构建一个日历应用。它应该显示本周的日历视图,并且让我能够创建新事件,为事件分配日期和时间。它应该是一个非常漂亮的应用。

当时没想写文章,第一版的截图没有做。  大概是白色+浅灰线

2 告诉它改进

提示词,我用的中文

好的,干得不错。我首先想让这个日历看起来非常漂亮,有干净的颜色和易于阅读的简约界面。请为我制定执行这个任务的计划。现在它非常朴素有些丑,没有任何样式。  

做出来是这样的,一行代码没敲,因为不会 next.js

3 创建规则文件 CLAUDE.md 

角色类似项目管理员,来指定规划与规则。

留意文件名,CLAUDE 是大写, md 是小写。这个文章是用来设定规则。

## 标准工作流程
1. 首先,仔细思考问题,阅读代码库中的相关文件,并将计划写入任务文件 todo.md。
2. 该计划应包含一个待办事项列表,以便您在完成时可以勾选。
3. 在开始工作之前,请与我确认,我将核实该计划。
4. 然后,开始处理待办事项,并随时标记已完成的项目。
5. 在每一步中,请向我简要说明您所做的更改。
6. 使您执行的每项任务和代码更改都尽可能简单。我们希望避免进行任何大规模或复杂的更改。每次更改应影响尽可能少的代码。一切都以简单为中心。
7. 最后,在 todo.md 文件中添加一个审查部分,总结您所做的更改和任何其他相关信息。

英文:

## Standard Workflow
1. First think through the problem, read the codebase for relevant files, and write a plan to tasks file todo.md.
2. The plan should have a list of todo items that you can check off as you complete them
3. Before you begin working, check in with me and I will verify the plan.
4. Then, begin working on the todo items, marking them as complete as you go.
5. Please every step of the way just give me a high level explanation of what changes you made
6. Make every task and code change you do as simple as possible. We want to avoid making any massive or complex changes. Every change should impact as little code as possible. Everything is about simplicity.
7. Finally, add a review section to the todo.md file with a summary of the changes you made and any other relevant information.

用@CLAUDE.me  让CC过一下。 视频只用几秒带过“we're going to put in a few rules here that are really powerful that are going to make Claude code even better at coding So here's the rules we're going to put in I'll also include this down below in the description ” 没有演示。 所以我没领悟到,是在代码第二次生成后,才让 CC 读取这个规则。 造成 todo.md 是空的。

todo.md 文件作用是,查看待办清单 / Check List 

油管博客 Finn 用提示词让 AI 生成 PLAN

提示词:

what do you think we should add to make this calendar even more powerful?

中文:

你认为我们应该添加什么功能来让这个日历应用更加强大?

(到此,看一下白送的 TOKEN 还有多少?)

以下是 CC 的 思考 输出, FINN视频里用的 OPUS 模型,给出的 PLAN 要强些有限。

what do you think we should add to make this calendar even more powerful?

✻ Thinking…

  The user is asking for my recommendations on what features we could add to make   
  the calendar even more powerful. They want me to think about what additional      
  functionality would enhance the calendar app. This is about planning and 
  suggesting features, not implementing them yet since I'm in plan mode.

  Let me think about what would make a calendar app more powerful and useful:       

  1. Data Persistence - Currently events are only stored in local state, so they    
  disappear on refresh
  2. Event Management - Can't edit, delete, or view event details
  3. Different View Types - Only has weekly view, could add monthly, daily, year    
  view
  4. Recurring Events - No support for repeating events
  5. Categories/Tags - Better organization of events
  6. Search and Filtering - Finding specific events
  7. Import/Export - Integration with other calendar systems
  8. Notifications/Reminders - Alert users about upcoming events
  9. Time Zone Support - Handle different time zones
  10. Drag and Drop - Moving events around visually
  11. Multi-user Support - Sharing and collaboration
  12. Event Templates - Quick creation of similar events
  13. Analytics/Insights - Time tracking, productivity metrics
  14. Mobile Responsiveness - Better touch interactions
  15. Keyboard Shortcuts - Power user features
  16. Print Support - Physical calendar printing
  17. Dark/Light Mode - Theme switching
  18. Integration APIs - Connect with other services
  19. Event Conflicts - Detect overlapping events
  20. Meeting Features - Video calls, attendees, locations

  I should organize these into categories and prioritize them based on impact and   
  development effort.

● Looking at the current calendar app, I can see several areas where we could       
  significantly enhance its power and usability. Let me analyze what would make     
  the biggest impact:

● Read(calendar-app\src\components\Calendar.tsx)
  ⎿  Read 50 lines (ctrl+r to expand)
  ⎿  calendar-app\CLAUDE.md

✻ Thinking…

  Based on my analysis of the current calendar app, I can see that it's beautiful   
  but has some fundamental limitations:

  1. Current State: 
    - Only weekly view
    - Events are stored in local state (lost on refresh)
    - Can only create events, not edit/delete them
    - No recurring events
    - No categories or organization
    - Basic event structure

  Let me think about what would make the biggest impact for users while keeping     
  changes simple and manageable:

  High Impact, Low Complexity:
  1. Data Persistence - Save events to localStorage so they persist across sessions 
  2. Event Management - Edit, delete, and view event details 
  3. Multiple Views - Monthly and daily views in addition to weekly
  4. Drag & Drop - Move events by dragging them around

  Medium Impact, Medium Complexity:
  5. Recurring Events - Daily, weekly, monthly repeating events
  6. Event Categories - Color-coded categories for organization
  7. Search & Filter - Find events quickly
  8. Today Navigation - Quick jump to current date

  High Impact, Higher Complexity:
  9. Import/Export - .ics file support for integration with other calendars
  10. Notifications - Browser notifications for upcoming events
  11. Event Conflicts - Detect and warn about overlapping events
  12. Mini Calendar - Small month view for navigation

  I should prioritize based on user value and development complexity. The most      
  impactful improvements would be:

  1. Data Persistence (Critical - events disappear on refresh)
  2. Event Management (Critical - can't modify events once created)
  3. Multiple Views (High value - see different time scales)
  4. Drag & Drop (High UX improvement)
  5. Event Categories (Organization and productivity)
  6. Recurring Events (Common use case)
  7. Search/Filter (Scales with more events)

  8. Today Navigation - Implementing a quick return to the current date enhances    
  user experience by providing instant temporal context.

  I'll map out a strategic approach to streamline calendar navigation and improve   
  overall usability.

● Read(calendar-app\src\types\event.ts)
  ⎿  Read 8 lines (ctrl+r to expand)

✻ Thinking…

  Now I have a good understanding of the current calendar structure. Let me analyze 
  what would make this calendar significantly more powerful while keeping each      
  change simple and focused.

  Current limitations I've identified:
  1. Events are lost on page refresh (no persistence)
  2. Can't edit or delete events once created
  3. Only weekly view available
  4. No event organization or categories
  5. No recurring events
  6. No quick navigation features
  7. No search functionality
  8. No drag-and-drop interaction

  I should organize these improvements by priority and complexity, focusing on      
  features that provide the most user value with manageable implementation 
  complexity.

● Based on my analysis of the current calendar app, I can see several powerful      
  enhancements that would significantly improve the user experience. Let me
  present a comprehensive plan for making this calendar much more powerful:

●User approved Claude's plan:
  ⎿ 🚀 Calendar Power-Up Enhancement Plan

    🎯 Priority 1: Essential Missing Features

    1. Data Persistence System

    - Implement localStorage to save events permanently
    - Events currently disappear on page refresh - critical fix
    - Add import/export functionality for calendar data backup

    2. Complete Event Management

    - Edit Events: Click to modify existing events
    - Delete Events: Right-click or button to remove events
    - Event Details View: Full modal with all event information
    - Duplicate Events: Quick copy function for similar events

    3. Multiple Calendar Views

    - Monthly View: Traditional month grid layout
    - Daily View: Detailed single-day schedule
    - Year View: Overview of entire year
    - View Toggle: Smooth transitions between views

    🎯 Priority 2: Enhanced User Experience

    4. Drag & Drop Functionality

    - Move events by dragging to different times/days
    - Resize events by dragging edges to adjust duration
    - Visual feedback during drag operations
    - Snap-to-grid for precise placement

    5. Event Categories & Organization

    - Color-Coded Categories: Work, Personal, Health, etc.
    - Category Management: Create/edit/delete categories
    - Smart Filtering: Show/hide events by category
    - Category Statistics: Time spent per category

    6. Smart Navigation & Search

    - Today Button: Instant jump to current date
    - Date Picker: Calendar widget for quick navigation
    - Search Bar: Find events by title, description, or category
    - Quick Filters: Today, This Week, Upcoming, etc.

    🎯 Priority 3: Advanced Features

    7. Recurring Events System

    - Repeat Options: Daily, weekly, monthly, yearly
    - Custom Patterns: Every 2 weeks, specific weekdays
    - End Conditions: Never, specific date, number of occurrences
    - Exception Handling: Skip holidays, modify single instances

    8. Time Zone & Scheduling Intelligence

    - Multi-timezone Support: Handle different time zones
    - Conflict Detection: Warn about overlapping events
    - Suggested Times: Smart scheduling for new events
    - Duration Templates: Common meeting lengths (15min, 30min, 1hr)

    9. Productivity & Analytics

    - Time Tracking: See how much time spent in different categories
    - Weekly/Monthly Reports: Visual charts of time allocation
    - Goal Setting: Target hours per category
    - Productivity Insights: Patterns in your schedule

    🎯 Priority 4: Integration & Polish

    10. Import/Export & Integration

    - ICS File Support: Import from Google Calendar, Outlook
    - JSON Export: Backup and share calendar data
    - URL Sharing: Share individual events or entire calendars
    - Print Support: Beautiful printable calendar layouts

    11. Notifications & Reminders

    - Browser Notifications: Alerts for upcoming events
    - Customizable Timing: 5min, 15min, 1hr before
    - Sound Alerts: Optional audio notifications
    - Snooze Function: Delay reminders

    12. Advanced UI Features

    - Keyboard Shortcuts: Power user navigation (n = new event, t = today)
    - Mini Calendar: Small month view for quick navigation
    - Event Templates: Save common event types for quick creation
    - Dark/Light Mode: Theme switching
    - Mobile-First Touch: Optimized gestures for mobile devices

    📊 Implementation Strategy

    Phase 1 (Week 1): Core functionality - persistence, editing, multiple views     
    Phase 2 (Week 2): UX improvements - drag/drop, categories, search
    Phase 3 (Week 3): Advanced features - recurring events, analytics
    Phase 4 (Week 4): Polish & integration - import/export, notifications

    Each feature will be implemented incrementally with minimal code changes,       
    following the principle of simplicity and focused improvements.


✻ Thinking…

  Great! The user has approved my comprehensive plan for making the calendar more 
  powerful. Now I need to start implementing this step by step, beginning with the 
  most critical features from Priority 1.

  Let me create a detailed todo list for the implementation, starting with the 
  essential missing features that will have the biggest immediate impact.

  I'll start with:
  1. Data Persistence System (localStorage)
  2. Complete Event Management (edit/delete events)
  3. Multiple Calendar Views

  These are the foundational improvements that will make the calendar actually      
  usable as a real productivity tool.

● Perfect! Let me create a comprehensive todo list to implement these powerful
  calendar enhancements step by step.

✻ Thinking…

  Great! Now I have my todo list ready. Let me start with the most critical feature 
  - implementing localStorage data persistence. This is essential because currently 
  all events disappear when the page is refreshed, which makes the calendar 
  basically unusable for real-world purposes.

  I'll need to:
  1. Create a utility for localStorage operations 
  2. Modify the main page component to save/load events from localStorage
  3. Ensure proper serialization/deserialization of Date objects

  Let me start by marking the first todo as in progress and then implementing the 
  localStorage functionality.

● Let me start implementing these powerful features! I'll begin with the most       
  critical improvement - data persistence so your events don't disappear when       
  you refresh the page.

✻ Thinking…

  I'll start by creating a utility for localStorage operations to handle saving and 
  loading events. This will ensure proper serialization of Date objects and provide 
  a clean API for data persistence.

后面就是修改代码,还是自问自答,估计运行十多分钟... 打了几盘 cod Mobile...

变化: 如上面说的 添加 Month Day Today

生成的 APP 就是弱鸡,字都看不清,拖拽不能用。

4 修改到能接受

把上面的问题对 CC 提出: 

拖拽不能用, 文字invisiable             

修改后:

还这样儿,不改了。

总结 :

IDE 工具没作用就是个文件浏览器作用,用处不大。

$20 不能用 OPUS,对比演示与生成代码的效果看,差距很大。

如果不编辑修改代码,CC 在CMD/PowerShell 也一样。

至少让CC 使用 Qwen API, 感觉以上的内容做完,给的免费TOKEN,不够用,充个茅台起步。

前两天让表妹用我的 GLM 推荐码注册,没收到赠送 TOKEN。 感觉被忽悠了。

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若转载,请注明出处:http://www.pswp.cn/web/96091.shtml
繁体地址,请注明出处:http://hk.pswp.cn/web/96091.shtml
英文地址,请注明出处:http://en.pswp.cn/web/96091.shtml

如若内容造成侵权/违法违规/事实不符,请联系英文站点网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

Gmail 数据泄露安全警报以及启示

目前,大规模数据泄露和针对性钓鱼攻击持续威胁着数十亿 Gmail 用户的安全,受ShinyHunters、UNC6040、UNC6395等威胁组织攻击,25 亿 Gmail 用户面临极大风险;攻击者已从暴力破解转向社会工程学与混合勒索,而密码复用、弱…

2024年6月GESPC++三级真题解析(含视频)

视频讲解:GESP2024年6月三级C真题讲解 一、单选题 第1题 解析: 答案C, 认证语言有C/C、Python、Scratch 第2题 解析: 答案B,判断闰年口诀“ 4闰 100不闰 400再闰 ” 第3题 解析: 答案C&#xff…

AiPPT生成的PPT内容质量怎么样?会不会出现逻辑混乱或数据错误?

作为一个每天要和 PPT 打交道的职场人,我用 AiPPT快一年了,从最初的 “试试看” 到现在的 “离不开”,最让我惊喜的就是它生成的 PPT 内容质量 —— 不仅逻辑清晰、数据专业,还能精准贴合不同场景需求,完全没遇到过逻辑…

DINOv3 新颖角度解释

1. Gram锚定(Gram Anchoring)的创新视角 新颖角度:oriane_simeoni(Meta AI研究人员)在X上分享了一个关于Gram锚定的深入线程,强调这一技术如何解决自监督学习中长期训练导致的特征图退化问题。 解释&#x…

【T2I】Discriminative Probing and Tuning for Text-to-Image Generation

paper:CVPR 2024 2403 https://arxiv.org/abs/2403.04321 code: https://github.com/LgQu/DPT-T2IAbstract 尽管文本到图像生成(T2I)取得了进展,但先前的方法往往面临文本 -图像对齐问题,例如生成图像中的关…

【CentOS7】使用yum安装出错,报HTTPS Error 404 - Not Found

【CentOS7】使用yum安装出错,报HTTPS Error 404 - Not Found问题描述解决办法博主有话说问题描述 在CentOS7中安装docker,切换了国内的镜像源进行yum安装,始终报如下错误:HTTPS Error 404 - Not Found 正在尝试其他镜像&#xff…

vulnhub:Kioptrix level 2

0x00、环境下载 链接:https://www.vulnhub.com/entry/kioptrix-level-11-2,23/ 0x01、前期准备 1.1、检查文件 hash值对比无误后解压 1.2、编辑虚拟机网卡 当不支持桥接时候,如练WiFi无无线网卡 方法1: 修改type为nat 方法2:将…

【CentOS7】docker安装成功后测试,报Unable to find image ‘hello-world:latest‘ locally

【CentOS7】docker安装成功测试,报Unable to find image hello-world:latest locally问题描述问题解决问题描述 根据大佬的博文【CentOS7】Linux安装Docker教程(保姆篇),以及结合之前的博文【CentOS7】使用yum安装出错&#xff0…

福彩双色球第2025104期篮球号码分析

明天是2025年9月9号星期二,深圳天气大雨。福彩双色球第2025104期篮球号码分析,上期开出篮球16,数字形式是1路球,合数偶数大号区域1字头数字。篮球1尾数01和11遗漏21期上次遗漏8期上上次遗漏7期,篮球3尾数03和13遗漏18期…

[手写系列]Go手写db — — 第三版(实现分组、排序、聚合函数等)

[手写系列]Go手写db — — 第三版第一版文章地址:https://blog.csdn.net/weixin_45565886/article/details/147839627 第二版文章地址:https://blog.csdn.net/weixin_45565886/article/details/150869791 🏠整体项目Github地址:ht…

狂想-机器人触感阵列理论验证方案

将方案改为使用**限制移动范围的半滚球**作为理论验证原型,是一个极具智慧且可行的降维策略,它将极大降低验证门槛,但同时会牺牲部分性能。### **方案转变后的核心变化**1. **原理替换**:从依赖**光学流**(拍摄表面纹理…

UNBIASED WATERMARK:大语言模型的无偏差水印

摘要1.背景与问题提出大语言模型(LLMs)的快速发展引发了对其可能被滥用的担忧。为降低这种风险,将水印技术融入大语言模型,以实现对模型输出的追踪和溯源成为一种思路。而此前研究认为,水印强度和模型输出质量之间存在…

MySQL——事务、MVCC

目录 什么是事务? 事务的四大特性 事务的隔离级别 事务的原理 redo log undo log MVCC实现原理 概念 隐藏字段 undo log版本链 readview 什么是事务? 事务是一组操作的集合,它是一个不可分割的工作单位,事务会把所有的操…

光伏项目无人机踏勘--如何使用无人机自动航线规划APP

手机号免费注册iSolarBP,一起来学习吧,注册获取无人机航线规划APP https://isolar-bp.sungrowplant.com/isolarbp#/login?qrcodeId1952928161454551042https://isolar-bp.sungrowplant.com/isolarbp#/login?qrcodeId1952928161454551042 登录--下载航…

优先搜索(DFS)实战

目录 一、DFS通用解题思路 二、逐题拆解 三、四题对比 四、总结:DFS解决矩阵问题的“万能模板” 在算法解题中,矩阵连通性问题是高频考点,而深度优先搜索(DFS)是解决这类问题的核心工具之一。它通过“一条路走到…

门控MLP(Qwen3MLP)与稀疏混合专家(Qwen3MoeSparseMoeBlock)模块解析

Qwen3MLP Qwen3MLP是基于门控机制的MLP模块,采用了类似门控线性单元(GLU)的结构。它通过三个线性变换层(gate_proj、up_proj和down_proj)和SiLU激活函数,先将输入从隐藏维度扩展到中间维度,经过…

产线相机问题分析思路

现象:复现问题 原因:问题分析、溯源,定位根本原因; 方案:提出解决方案、规避措施 验证:导入、验证方案是否可行(先小批量、再大批量);一. 现象产线反馈4pcs预览又脏污、划…

【开关电源篇】EMI输入电路-超简单解读

1. 输入电路主要包含哪些元件?滤波设计需遵循什么原则? 输入电路是电子设备(如开关电源)的“入口”,核心作用是抑制电磁干扰(EMI)、保护后级电路,其设计直接影响设备的稳定性和电磁…

胜券POS:打造智能移动终端,让零售智慧运营触手可及

零售企业运营中依然存在重重挑战:收银台前的长队消磨着顾客的耐心,仓库里的库存盘点不断侵蚀着员工的精力,导购培训的成本长期居高不下却收效甚微……面对这些痛点,零售企业或许都在等待一个破局的答案。百胜软件胜券POS&#xff…

(回溯/组合)Leetcode77组合+39组合总和+216组合总和III

为什么不能暴力,因为不知道要循环多少次,如果长度为n,难道要循环n次么,回溯的本质还是暴力,但是是可以知道多少层的暴力 之所以要pop是因为回溯相当于一个树形结构,要pop进行第二个分支 剪枝:…