Skip to content

Instantly share code, notes, and snippets.

View cms's full-sized avatar

Christian C. Salvadó cms

View GitHub Profile
@cms
cms / claude-code-env-leakage.md
Created May 1, 2026 20:33
Claude Code Silent .env Secret Leakage - Security Summary

🕵️ Claude Code Silent .env Secret Leakage

Source: darkzodchi @x.com | Full article: Knostic.ai


What Happened

A developer (Dor Munis) was debugging an odd HTTP 407 proxy error when using Claude Code's /login command. Everything else worked fine — curling Anthropic's API directly returned 200. Running Claude Code in debug mode revealed the culprit: it was silently reading his .env file and loading his HTTP_PROXY credentials into memory automatically. Moving the .env outside the project directory fixed it immediately.

@cms
cms / SKILL.md
Created February 11, 2026 07:04 — forked from kieranklaassen/SKILL.md
Claude Code Swarm Orchestration Skill - Complete guide to multi-agent coordination with TeammateTool, Task system, and all patterns
name orchestrating-swarms
description Master multi-agent orchestration using Claude Code's TeammateTool and Task system. Use when coordinating multiple agents, running parallel code reviews, creating pipeline workflows with dependencies, building self-organizing task queues, or any task benefiting from divide-and-conquer patterns.

Claude Code Swarm Orchestration

Master multi-agent orchestration using Claude Code's TeammateTool and Task system.


@cms
cms / HOW-IT-WORKS.md
Created February 11, 2026 06:57 — forked from avocade/HOW-IT-WORKS.md
Tracked my @claudeai code swarm with an "observer" agent (3 agents + leader) & had it snapshot the on-disk state in `.claude/teams` and `tasks` at intervals.

How Claude Code Team Coordination Works

Observed by: observer agent Date: 2026-02-09 Team: moltbook-tui (1 lead + 4 agents, observed over ~10 minutes of activity) Snapshots taken: 7 (see snapshot-1.md through snapshot-7.md for raw data)

Architecture Overview

Claude Code teams use a filesystem-based coordination system. There are no sockets, databases, or message queues - everything is stored as JSON files on disk. Agents coordinate through:

@cms
cms / detailed_diagram.mmd
Created January 24, 2026 02:41
Detailed Twilio Voice Call Diagram with Transcription Models
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cms
cms / diagram.mmd
Created January 24, 2026 02:38
Twilio Voice Call Diagram
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cms
cms / CLAUDE.md
Created January 3, 2026 00:01 — forked from minimaxir/CLAUDE.md
Python CLAUDE.md (20260101)

Agent Guidelines for Python Code Quality

This document provides guidelines for maintaining high-quality Python code. These rules MUST be followed by all AI coding agents and contributors.

Your Core Principles

All code you write MUST be fully optimized.

"Fully optimized" includes:

@cms
cms / explore-plan-code-test.md
Created July 13, 2025 06:30 — forked from sergeyk/explore-plan-code-test.md
Explore - Plan - Code - Test Workflow

At the end of this message, I will ask you to do something. Please follow the "Explore, Plan, Code, Test" workflow when you start.

Explore

First, use parallel subagents to find and read all files that may be useful for implementing the ticket, either as examples or as edit targets. The subagents should return relevant file paths, and any other info that may be useful.

Plan

Next, think hard and write up a detailed implementation plan. Don't forget to include tests, lookbook components, and documentation. Use your judgement as to what is necessary, given the standards of this repo.

If there are things you are not sure about, use parallel subagents to do some web research. They should only return useful information, no noise.

@cms
cms / Optimizar.js
Last active January 10, 2020 14:55
import _ from "lodash"
import React from "react"
import moment from "moment"
import { connect } from "react-redux"
import API from "@Services/Api/profile"
import { ApiManager } from "../../api/apiManager"
import ParsedText from "react-native-parsed-text"
import { NavigationEvents } from "react-navigation"
import { DateToWordsFromNow } from "../../helpers/helper"
import { ACTIVITY_NOTIFICATION } from "../../api/constants"
import _ from "lodash";
import React from 'react';
import moment from 'moment';
import { connect } from 'react-redux';
import API from '@Services/Api/profile';
import { ApiManager } from "../../api/apiManager";
import ParsedText from 'react-native-parsed-text';
import { NavigationEvents } from "react-navigation";
import { DateToWordsFromNow } from '../../helpers/helper';
import { ACTIVITY_NOTIFICATION } from "../../api/constants";
@cms
cms / getCurrentPosition.js
Created August 13, 2019 18:08
navigator.geolocation.getCurrentPosition promise
function getCurrentPosition(options) {
return new Promise(function(resolve, reject) {
navigator.geolocation.getCurrentPosition(resolve, reject, options);
});
}
(async () => {
const position = await getCurrentPosition().catch(err => console.log(err));
console.log(position);
})();