用 Claude Code 每日自动分析日志优化应用体验
Almost any app can 𝗶𝗺𝗽𝗿𝗼𝘃𝗲 𝗶𝘁𝘀𝗲𝗹𝗳 𝗮 𝗹𝗶𝘁𝘁𝗹𝗲 𝗲𝘃𝗲𝗿𝘆 𝗱𝗮𝘆. All it takes is two prompt…
提供了结构清晰、可直接复制使用的具体 Prompt 和工作流,展示了如何利用 AI Agent 解决实际的开发痛点,对创作者有较高的实操参考价值。
Almost any app can 𝗶𝗺𝗽𝗿𝗼𝘃𝗲 𝗶𝘁𝘀𝗲𝗹𝗳 𝗮 𝗹𝗶𝘁𝘁𝗹𝗲 𝗲𝘃𝗲𝗿𝘆 𝗱𝗮𝘆. All it takes is two prompts.
几乎任何应用都可以每天 𝗶𝗺𝗽𝗿𝗼𝘃𝗲 𝗶𝘁𝘀𝗲𝗹𝗳 𝗮 𝗹𝗶𝘁𝘁𝗹𝗲 𝗲𝘃𝗲𝗿𝘆 𝗱𝗮𝘆。只需要两个提示词。
Step 1: have your agent add proper logging 👇 "Help me plan logging for this app so we can fully replay one user's experience: what they did, the key steps inside the app, and what they saw in the end. Give every session an ID, and never log passwords, tokens or personal data. Store the logs where an agent running on a daily schedule can read them. Show me the plan first, and don't write any code until I approve it."
步骤 1:让你的代理添加适当的日志记录 👇 "帮我为这个应用规划日志记录,以便我们完全重现一个用户的体验:他们做了什么、应用内的关键步骤以及最终看到了什么。给每个会话分配一个 ID,并且永远不要记录密码、令牌或个人数据。将日志存储在一个按每日计划运行的代理可以读取的地方。先给我看计划,在我批准之前不要写任何代码。"
Step 2: set this to run once a day 👇 "Read this app's logs from the past 24 hours. Find broken features, places where users got stuck, and steps that are slow or unnecessary. Rank them by how many users each one affects, and quote the log lines behind each one. Turn the worst one into a test that reproduces it. Don't change any code yet."
步骤 2:设置它每天运行一次 👇 "读取过去 24 小时的应用日志。找出损坏的功能、用户卡住的地方以及缓慢或不必要的步骤。根据受影响的用戶数量对它们进行排名,并引用每个问题背后的日志行。将最严重的问题转化为可复现的测试。暂时不要更改任何代码。"
In Claude Code, type /schedule and paste this in. It runs in the cloud and 𝗸𝗲𝗲𝗽𝘀 𝗴𝗼𝗶𝗻𝗴 𝘄𝗶𝘁𝗵 𝘆𝗼𝘂𝗿 𝗹𝗮𝗽𝘁𝗼𝗽 𝗰𝗹𝗼𝘀𝗲𝗱, as long as it can read your logs.
在 Claude Code 中,输入 /schedule 并粘贴以下内容。 它在云端运行,只要能够读取你的日志,即使你合上笔记本电脑也会 𝗸𝗲𝗲𝗽𝘀 𝗴𝗼𝗶𝗻𝗴 𝘄𝗶𝘁𝗵 𝘆𝗼𝘂𝗿 𝗹𝗮𝗽𝘁𝗼𝗽 𝗰𝗹𝗼𝘀𝗲𝗱。
Step 3: every morning, read the ranked list and pick one to fix. The worst one already has a test, so just have your agent fix it until that test passes.
步骤 3:每天早上,阅读排名列表并选择一个来修复。最严重的那个已经有测试了,所以只需让你的代理修复它直到该测试通过。
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力