Skip to content

Instantly share code, notes, and snippets.

View up1's full-sized avatar

Somkiat Puisungnoen up1

View GitHub Profile
@up1
up1 / README.md
Created August 11, 2026 15:17 — forked from mattpocock/README.md
agent-proxy — a zero-dep proxy that shows the bloat in Claude Code's requests (ranked tool table + full readable Markdown of every request)

agent-proxy — see the bloat in Claude Code's requests

A zero-dependency logging proxy that sits between Claude Code and the Anthropic API. It forwards every request untouched, streams the reply straight back (so the CLI is unaffected), and writes a readable Markdown document for each request — led by a ranked table of what is eating your context.

Run it

@up1
up1 / 1.txt
Last active August 10, 2026 16:56
Demo
// Result from dom-testid
# document "Vite + React"
body
div id="root"
div
h1 data-testid="message_text"
#text "Call REST API 2026/06/04 Update !!"
center
div data-testid="message_box"
p data-testid="hello_text"
@up1
up1 / 1.json
Created August 9, 2026 05:42
Claude Code :: permission
{
"permissions": {
"defaultMode": "auto",
"allow": [
"Read",
"Grep",
"WebSearch"
],
"ask": [
"Bash"
@up1
up1 / 1.txt
Created August 7, 2026 04:48
AnyDoc Demo
$npx @firecrawl/anydoc demo.pdf
anydoc: unsupported input: PDF has no extractable text (Scanned, 8 pages): OCR is required
@up1
up1 / 1.txt
Last active August 6, 2026 06:50
Hello TamaClaude
// ติดตั้ง Command line tool
$xcode-select --install
// Clone project จาก Github
$git clone https://github.com/thaitop/tamaclaude.git
$cd tamaclaude
// ทำการติดตั้ง firmware ผ่าน serial port
// และ download file จาก https://github.com/thaitop/tamaclaude/releases/tag/v1.2.0 มาไว้ที่ ~/Downloads/
// ต้องติดตั้ง Python ด้วย
@up1
up1 / 1.txt
Last active August 5, 2026 06:47
Playwright skill
---
name: playwright-ui-test
description: Browser automation testing skill using Playwright for UI testing
---
## Workflow of playwright-ui-test skills
1. Read requirements and identify the UI flows to be tested from <user requirement> and HTML file from user.
2. Generate test cases for each identified flow using the Playwright framework.
3. Run the generated test cases and validate the results
4. If the test cases fail, analyze the failure and fix the issues in the application or test cases and run until all test cases pass successfully.
@up1
up1 / 1.txt
Created August 4, 2026 09:25
Req
# Web dashboard
## User Interface
* Endpoint = `/dashboard`
* Mockup UI from file `mock-ui-1.html`
## User Flow
@up1
up1 / 1.txt
Created August 4, 2026 07:42
Demo skills
---
name: angular-dev
description: Web developer with Angular framework
---
## Workflow of Angular Developer
1. Understand the requirements and design + planning the application architecture based on user requirements
2. Read and analyze Mock User interface from user
3. Create Angular components, services, and modules based on the requirements
4. Implement routing and navigation between different features
@up1
up1 / index.test.ts
Created August 3, 2026 07:07
Cloudflare Test Harness
import { createTestHarness } from "wrangler";
import { beforeAll, afterEach, afterAll, test } from "vitest";
// Initialize the test harness pointing to your Cloudflare Worker config
const server = createTestHarness({
workers: [
{ configPath: "./wrangler.jsonc" } // or wrangler.toml
],
});
@up1
up1 / 1.md
Created August 2, 2026 06:56
MCP 2.0
sequenceDiagram
    participant C as MCP Client
    participant LB as Load Balancer
    participant A as MCP Server A
    participant B as MCP Server B
    participant S as Session Store

    C->>LB: initialize()
 LB-&gt;&gt;A: initialize()