慣性聚合 高效追讀感興趣之博客、新聞、科技資訊
閱原文 以慣性聚合開啟

推薦訂閱源

博客园 - 司徒正美
V
V2EX
T
Tailwind CSS Blog
有赞技术团队
有赞技术团队
aimingoo的专栏
aimingoo的专栏
Apple Machine Learning Research
Apple Machine Learning Research
IT之家
IT之家
Blog — PlanetScale
Blog — PlanetScale
A
About on SuperTechFans
月光博客
月光博客
T
The Blog of Author Tim Ferriss
宝玉的分享
宝玉的分享
Martin Fowler
Martin Fowler
博客园 - 聂微东
The GitHub Blog
The GitHub Blog
V
Visual Studio Blog
WordPress大学
WordPress大学
酷 壳 – CoolShell
酷 壳 – CoolShell
Engineering at Meta
Engineering at Meta
GbyAI
GbyAI

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python)
生 Claude 代码之技于汝之 git 史也
Odilon HUGON · 2026-05-24 · via DEV Community

吾本可创一泛称之"补丁"之技。模板索症状、期行、已试之策。有用。泛化。易忘。

然吾察吾之git日志。于此项目,三十次提交中,有八次触及同一Node.js子系统。常见之模式:API超时,slug正则,损坏之JSON文件。吾所创之技,不索症状——直读三文件,可解八成之失,依序而行。此乃通用模板与定制技之别也。

Git之志乃汝实所行之最诚文牍。此乃如何用之以生自动触发之技.

审察:Git之志所真显者

始于此令:


git log --oneline -50 | awk '{$1=""; print $0}' | sed 's/([^)]*)//' | sort | uniq -c | sort -rn | head -20

入全屏模式 出全屏模式

所见:近五十次提交中,各任务类型之实频。于此作品集:


8  fix(veille):       Node.js watch system — frequent bugs, complex architecture
5  feat(blog):        article creation — always the same file order
3  fix(blog):         post-publication fixes — typos, PHP syntax, slugs
2  refactor(veille):  refactors of the same subsystem
1  docs(publish):     workflow updates

入全景模式 出全景模式

三征以察之:

  1. 频度 — 往复者,技之所存也。偶为之务,非也.
  2. 复用之域 — 同件共改,技知所之矣.
  3. 同系之修 — 数多fix(X) → 识其弊之所在,当为之码.

于此,补以频触之文:


git log --oneline -30 --name-only | grep -v "^[a-f0-9]" | sort | uniq -c | sort -rn | head -15

令其全屏. 退出全屏.

案卷之记不足,言谈之史亦重

诸事之记,所为之事所行之频此不告君以所询之由,亦不示所问之故,或致龃龉之由于交际。此常为精妙之技藏焉。

言谈往复显:

  • 澄问之需,每会必询→所缺之讯,未得编码于技
  • 修正若"非也,非如此,当如此"者,乃制约之明示也
  • 屡次重拟之文,当为触发之确钥
  • 数度重释之事,当在技能之属,非存于心也

世俗实践,未尝录原始之语。然有三源摄其精要

1. 记忆之牍(反馈)

每存一正,皆为直讯。于此项目,memory/feedback_article_workflow.md所含者:


Don't go through brainstorming for articles — too much ceremony.
Write directly in order: FR → EN → posts.json → OG → php -l → commit → deploy.

入全屏模式 出全屏模式

此即blog-article之要约。非在码中,而在正史。无记,则每会须重释此律.

2. CLAUDE.md之Git日志


git log --oneline -- CLAUDE.md .claude/CLAUDE.md

入全景模式 出全景模式

凡改 CLAUDE.md 者皆摩擦之迹,迫令规更——多因会话有失所致。此增补,实为技艺之材之适选.

3. 工作流提交(文档,杂务)

于此项目:docs(publish): add article creation workflow to CLAUDE.publish.md是也。前会显隙,故此录存。当日所增,恰应技能所载。

二源并合

所显

所宜

Git日志所录

频务同触之文,脆系之统

辨识当立之技能

記憶/回饋

往昔糾正、所學約束、摩擦之點

技藝內涵與約束

CLAUDE.md之Git日誌

摩擦後所增之規則

非顯而易見之約束待編碼

文件/維護提交

會議中所顯文件之缺失

序列與邊界情況

由git log所生之技,知所行之事。由git log所生之技,兼之修正史,知所行之事,亦知其勿谬之道

将式转为技

克劳德代码之技,乃markdown之文也~/.claude/plugins/<name>/skills/<name>/SKILL.md至简之构:


---
name: skill-name
description: ">"
  [Trigger conditions — this is where everything happens]
---

[What Claude should do when the skill is triggered]

入全景模式 出全屏模式

"其"description非文牍也,乃探察之式Claude 每读一讯,必决此技之适否。其应曰:此技何境乃适?

描述模糊则致误报与漏报


# ❌ Too vague
description: Use when there's a bug.

# ✅ Precise
description: >
  Use for any bug, error or unexpected behavior in the automated watch/veille system.
  Trigger on: "veille doesn't work", "job not running", "article not generated",
  any error in scripts/veille/ or logs/veille-daemon.log.
  Do NOT trigger for blog PHP bugs or deploy issues.

进入全屏模式 退出全屏模式

末句——“勿触发”——与正向条件同等重要。其可防类技能相撞

具体之例:此项目所生三技

《git日志》显三殊式。今列其应技于下.

技一—制文( feat(blog) × 5)

五次合,恒同其序:PHP FR → PHP EN → posts.json → OG图 → php -l → 合 → 部署。缺一节,则部署不克.


---
name: blog-article
description: >
  Use when asked to create, write, draft or publish a blog article.
  Trigger on: "new article", "write about X", "publish on LinkedIn/dev.to",
  any mention of blog post creation or article workflow.
---

Mandatory execution order:
1. blog/posts/<slug>.php — complete FR version
2. blog/posts/<slug>.en.php — complete EN version
3. blog/posts.json — FR + EN entry, first position
4. npm run og <slug> — OG image
5. php -l on both files — syntax check
6. git commit + push
7. node scripts/publish-article.js <slug> — LinkedIn + dev.to + deploy

Never skip a step. Never commit without php -l.

入全屏模式 出全屏模式

技能二—守望调试(修(守望)×八)

同一子系统中八次修整提交。已知故障点,直书其事可也。


---
name: veille-debug
description: >
  Use for any bug, error or unexpected behavior in the automated watch/veille system.
  Trigger on: veille errors, jobs not running, articles not generated, daemon issues,
  Claude API timeouts in watch context, slug/registry problems.
  Do NOT trigger for blog PHP bugs or LinkedIn/dev.to publishing issues.
---

Read in this order before any diagnosis:
1. scripts/veille/registry.json — configured jobs and their state
2. logs/veille-daemon.log — last execution (timestamp + errors)
3. scripts/veille/runner.js — general architecture

Known failure points (by frequency):
- Claude API timeout → increase timeout in the job config
- Slug regex too restrictive → test with node scripts/veille/test-slug.js
- Corrupt updates.json → delete the file, system recreates on next run
- Wrong cron working directory → check WorkingDirectory in systemd .service
- renderArticle() not writing → verify article.json exists with correct fields

入全屏模式 出全屏模式

技能三—刊后修正(修(博客)×三)


---
name: blog-fix
description: >
  Use for small fixes on already-published blog articles: typos, grammar,
  PHP syntax errors, slug corrections, missing tags.
  Trigger after publication, not during creation.
  Do NOT trigger for new article creation.
---

Constraints for post-publication fixes:
- Never run scripts/deploy.sh (full deploy)
- Use bash scripts/deploy-files.sh <file1> <file2> (targeted deploy)
- php -l mandatory before any deploy
- If posts.json modified → include it in deploy-files.sh

Commit convention: fix(blog): <short description>

入全屏模式 出全屏模式

何以致技自发之善

数周习用,效者:

简述配以实词。"触发于:警误、任未行"胜于"用之,则自系统有弊。"词宜合乎自若所书。

一境一技。 若二技可应同境,克劳德择之,非恒得其宜。宁择一技而条件较广,毋使二技相似而相扰。

编码隐约之制。 "勿以deploy.sh为修之策"者,若非内含于技,则每临其境必复习之。此即技所当编:已决之断,毋令屡改。

试变之验. 触发于"文章"而非"博客"或"领英帖"之技,谬调矣。列尔实用于描述之自然表述.

结论

git之日志,乃最佳之始点,以其诚也。显尔所实为,非尔所自谓为。频务之事,脆弱之系,不变之序——皆在焉。

更正之迹——记忆之文,CLAUDE.md之演进,工作之程——补git之志所不能显:事之问若何,纷争之所由,所习之制若何。

独凭git之志而生之技,知所行。兼凭git之志与更正之迹而生之技,知所行,且知何以不为谬。其别,惟读二源各三十分钟耳。