Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
set -euo pipefail
# claude-ps: Monitor Claude Code sessions running in tmux panes
WATCH_INTERVAL=1
# send subcommand constants
MAX_MESSAGE_BYTES=102400
WAIT_AFTER_PASTE="${CLAUDE_PS_WAIT_AFTER_PASTE:-0.2}"
@mostlyfine
mostlyfine / SKILLS.md
Created April 13, 2026 04:18
install mcp server skill
name install-mcp
description MCPサーバのインストールと設定を行うスキル。プリセットから選択してClaude CodeやClaude Desktopにセットアップする。「MCPサーバをインストール」「MCP入れて」「MCPセットアップ」「MCP設定して」などの依頼で発動する。MCPサーバの追加・設定・導入に関する依頼には必ずこのスキルを使うこと。

MCP Server Installer

MCPサーバをプリセット一覧から選択してインストールするスキル。

プリセット一覧

#!/usr/bin/env bash
set -euo pipefail
# copilot-ps: Monitor GitHub Copilot CLI sessions running in tmux panes
WATCH_INTERVAL=1
BOLD='\033[1m'
GREEN='\033[32m'
YELLOW='\033[33m'
[env]
_.file = { path = '.env', tools = true }
_.python.venv = { path = '.venv', create = true, python = '3.11' }
UV_PYTHON = { value = "", tools = true }

Instructions / Rules

Directory

Agent Project User
ClaudeCode <REPO_DIR>/CLAUDE.md
<REPO_DIR>/.claude/CLAUDE.md
~/.claude/CLAUDE.md
Gemini-CLI <REPO_DIR>/GEMINI.md ~/.gemini/GEMINI.md
Codex-CLI <REPO_DIR>/AGENTS.md ~/.codex/AGENTS.md
Cursor <REPO_DIR>/AGENTS.md
<REPO_DIR>/.cursor/rules/AGENTS.md
~/.cursor/rules/*.md
CopilotChat <REPO_DIR>/.github/copilot-instructions.md ~/Library/Application Support/Code/User/prompts/*.instructions.md
Cline /.clinerules/*.md ~/Documents/Cline/Rules/*.md
{
"agents": [
"claude-code",
"gemini-cli"
],
"mcpServers": {
"markdownit": {
"command": "docker",
"args": [
"run",
@mostlyfine
mostlyfine / design.md
Created September 3, 2025 10:36
kiro example

Design Document

Overview

The ECS External Monitoring System is a serverless, cost-efficient solution that performs automated health checks on external services. The system uses AWS ECS Fargate scheduled tasks to run TypeScript-based monitoring code, stores configurations in S3, manages secrets through AWS Secrets Manager, and provides comprehensive alerting through multiple channels. The architecture is designed to scale efficiently to hundreds of monitoring targets while maintaining low operational costs.

Architecture

graph TB
@mostlyfine
mostlyfine / gpt-5-for-coding-cheatsheet.md
Last active August 26, 2025 03:06
GPT-5 コーディング活用術

GPT-5は強力ですが、そのプロンプト入力は他のモデルとは異なる場合があります。

ここでは、APIやコーディングツールでGPT-5を最大限に活用するためのヒントをご紹介します。

1. 正確に記述し、矛盾した情報を避ける

新しいGPT-5モデルは指示追従能力が大幅に向上していますが、その副作用として、特に .cursor/rules や AGENTS.md ファイル内で曖昧な指示や矛盾した指示を与えられると、うまく機能しないことがあります。

2. 適切な思考レベルを使用する

GPT-5は問題を解決する際に、常にある程度の思考を行います。

#!/bin/sh
# https://learn.microsoft.com/ja-jp/azure/ai-foundry/openai/reference
API_VERSION=2024-10-21
curl -s "${AZURE_OPENAI_ENDPOINT}/openai/deployments/${AZURE_OPENAI_DEPLOYMENT_NAME}/chat/completions?api-version=${API_VERSION}" \
-H "Content-Type: application/json" \
-H "api-key: ${AZURE_OPENAI_API_KEY}" \
-d "{
\"messages\":[