Skip to content

Instantly share code, notes, and snippets.

@fengmk2
fengmk2 / claude-code-tools.md
Created June 23, 2025 09:42 — forked from wong2/claude-code-tools.md
Tools and system prompt of Claude Code

Task

Launch a new agent that has access to the following tools: Bash, Glob, Grep, LS, exit_plan_mode, Read, Edit, MultiEdit, Write, NotebookRead, NotebookEdit, WebFetch, TodoRead, TodoWrite, WebSearch. When you are searching for a keyword or file and are not confident that you will find the right match in the first few tries, use the Agent tool to perform the search for you.

When to use the Agent tool:

  • If you are searching for a keyword like "config" or "logger", or for questions like "which file does X?", the Agent tool is strongly recommended

When NOT to use the Agent tool:

  • If you want to read a specific file path, use the Read or Glob tool instead of the Agent tool, to find the match more quickly
  • If you are searching for a specific class definition like "class Foo", use the Glob tool instead, to find the match more quickly
  • If you are searching for code within a specific file or set of 2-3 files, use the Read tool instead of the Agent tool, to find the match more quickly
@fengmk2
fengmk2 / .husky pre-commit
Last active June 20, 2025 06:58
eggjs oxlint config and .prettierrc config
npx lint-staged
@fengmk2
fengmk2 / docker-registry-mirrors.md
Created October 10, 2024 08:12 — forked from y0ngb1n/docker-registry-mirrors.md
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized

Node 12 值得关注的新特性

前言

时隔一年,Node.js 12 如约而至,正式发布第一个 Current 版本。

该版本带来了诸如:

  • V8 更新带来好多不错的特性。

aaa bbb

aaa

bbb

@fengmk2
fengmk2 / table.md
Last active April 9, 2019 15:21
table.md

带有特殊字符的文档转 markdown

表格分界限符

Parameter Type (length) Description Required Example
business_type String If more than one type is involved, separate type values with vertical bar (|). Y 1|2|3|4|5
or
1
hotel_name String Hotel name that consists of numbers, letters, spaces, and special characters including ,.<>()[]/\-,. If more than one hotel name exists, separate values with vertical bar (|). Specify this field only when business_type is 1 (Hotel). Y zlidu, sluhg-987, 889utng
@fengmk2
fengmk2 / meta.md
Last active March 18, 2019 05:31
We couldn’t find that file to show.
@fengmk2
fengmk2 / crash.js
Created January 19, 2019 11:27
viz crash.js
'use strict';
const Viz = require('viz.js');
const { Module, render } = require('viz.js/full.render.js');
const viz = new Viz({ Module, render });
let total = 0;
async function graphviz(content) {
const svg = await viz.renderString(content);
total++;
@fengmk2
fengmk2 / demo.md
Last active December 12, 2018 08:31
1













@fengmk2
fengmk2 / Install-nginx-with-http2-support.md
Created November 19, 2018 19:01 — forked from hollodotme/Install-nginx-with-http2-support.md
Install nginx with http2 support on ubuntu 14.04 LTS (Trusty)

How to install nginx (>= 1.9.5) with http2 support on Ubuntu 14.04 LTS (Trusty)

IMPORTANT: Backup your nginx site configs (usually under /etc/nginx/sites-available)!

Remove old nginx

Remove old nginx incl. nginx-common:

apt-get autoremove --purge nginx nginx-common