kuif-net

Manage the kuif.net static site, nginx config, i18n files, and Docker containers over SSH.

Updated Sep 9, 2026
One-click install
npx skills add https://github.com/luckybbjason1/trading --skill kuif-net-luckybbjason1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kuif-net
Source: https://github.com/luckybbjason1/trading/tree/main/.hermes/skills/kuif-net
Command: npx skills add https://github.com/luckybbjason1/trading --skill kuif-net-luckybbjason1

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Operating the kuif.net Korean virtual card affiliate site involves fragile infrastructure: bind-mounted static files that break with sed -i, an Alpine nginx container where docker cp corrupts configs, and a multi-language frontend with strict content rules. This Skill encodes the safe edit patterns, server coordinates, and recovery procedures so changes do not take the site down. ## Core Features & Use Cases - Inode-safe static file editing: Python truncate-based edits on LIVE bind-mounted HTML and i18n JSON files (ko/en/zh), with mandatory backups. - Nginx config management in Alpine containers: Reliable docker exec dd write pattern, config extraction from committed images, and emergency container recovery when configs are corrupted. - Site operations: VIP tier updates, image swap workflow with Cloudflare cache handling, CSP and reverse-proxy routing awareness, and backend health checks for MySQL, Redis, and the Node.js backend. - Use Case: You need to update VIP4 pricing on kuif.net. The Skill guides you to back up index.html, apply a Python in-place edit, verify i18n keys exist in all three languages, and confirm the change live via curl. ## Quick Start Use the kuif-net skill to update the VIP tier pricing on kuif.net and verify the change is live.

Frequently Asked Questions about kuif-net

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I edit bind-mounted files in a Docker container without breaking them?

Never use sed -i on bind-mounted files because it creates a new inode that the container cannot see. Use a Python script that opens the file with r+, replaces content, seeks to zero, writes, and truncates, which preserves the inode so changes appear immediately in the container.

How do I update nginx config inside an Alpine Docker container?

Do not use docker cp or heredocs, which silently corrupt files on Alpine. Pipe the local config through ssh into docker exec -i dd of=/etc/nginx/conf.d/default.conf bs=4096, then run nginx -t and nginx -s reload to apply it.

Why does docker cp clear my nginx config to 0 bytes?

This is a known Alpine overlayfs plus docker cp bug affecting the dp_frontend container. Recover by extracting the original config from the committed image using docker create and docker cp, then write it back with the dd method.

How do I add a new translation key to a multi-language static site?

Add the key to all three bind-mounted i18n JSON files (ko, en, zh) in kuif-static-LIVE. Changes take effect immediately since the files are bind-mounted, and HTML elements reference keys via data-i18n attributes.

Why does the kuif.net login endpoint return a 405 error?

The /agent/user/ path on kuif.net must proxy with Host header user.kuif.net. Using agent.uepaid.com as the Host header on this path causes the 405 response, so check the nginx proxy_set_header directive.