Skip to content

Instantly share code, notes, and snippets.

View jmwdpk's full-sized avatar

M J jmwdpk

  • San Francisco, CA
View GitHub Profile
@jmwdpk
jmwdpk / mcp-to-skill-converter.md
Created November 10, 2025 02:18 — forked from Felo-Sparticle/mcp-to-skill-converter.md
Built a converter that turns any MCP server into a Claude Skill - achieving 90% context savings

mcp-to-skill: Convert MCP Servers to Claude Skills

I built a tool that converts any MCP server into a Claude Skill, reducing context usage by 90%.

The Problem I Hit

Using Claude with multiple MCP servers, I kept running into issues:

  • Had ~15 MCP servers configured
  • Tool definitions ate 30-40k tokens before any actual work
  • Claude felt slower, responses got cut off
@jmwdpk
jmwdpk / rank_metrics.py
Created June 29, 2017 00:40 — forked from bwhite/rank_metrics.py
Ranking Metrics
"""Information Retrieval metrics
Useful Resources:
http://www.cs.utexas.edu/~mooney/ir-course/slides/Evaluation.ppt
http://www.nii.ac.jp/TechReports/05-014E.pdf
http://www.stanford.edu/class/cs276/handouts/EvaluationNew-handout-6-per.pdf
http://hal.archives-ouvertes.fr/docs/00/72/67/60/PDF/07-busa-fekete.pdf
Learning to Rank for Information Retrieval (Tie-Yan Liu)
"""
import numpy as np
@jmwdpk
jmwdpk / rank_metrics.py
Created June 29, 2017 00:40 — forked from bwhite/rank_metrics.py
Ranking Metrics
"""Information Retrieval metrics
Useful Resources:
http://www.cs.utexas.edu/~mooney/ir-course/slides/Evaluation.ppt
http://www.nii.ac.jp/TechReports/05-014E.pdf
http://www.stanford.edu/class/cs276/handouts/EvaluationNew-handout-6-per.pdf
http://hal.archives-ouvertes.fr/docs/00/72/67/60/PDF/07-busa-fekete.pdf
Learning to Rank for Information Retrieval (Tie-Yan Liu)
"""
import numpy as np
@jmwdpk
jmwdpk / index.html
Created April 11, 2017 23:47
Restaurant Recommendation Final Restaurant Recommendation // source http://jsbin.com/sajodu
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="description" content="Restaurant Recommendation">
<meta name="author" content="Your Name">
<title>Restaurant Recommendation Final</title>
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link rel="stylesheet" href="styles/main.css">
@jmwdpk
jmwdpk / index.html
Created April 11, 2017 23:46
Restaurant Recommendation Final Restaurant Recommendation // source http://jsbin.com/sajodu
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="description" content="Restaurant Recommendation">
<meta name="author" content="Your Name">
<title>Restaurant Recommendation Final</title>
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link rel="stylesheet" href="styles/main.css">
@jmwdpk
jmwdpk / index.html
Created April 5, 2017 17:50
Restaurant Recommendation Restaurant Recommendation (Lesson 8) // source http://jsbin.com/sajodu
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="description" content="Restaurant Recommendation (Lesson 8)">
<meta name="author" content="Your Name">
<title>Restaurant Recommendation</title>
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<style id="jsbin-css">
@jmwdpk
jmwdpk / bash-cheatsheet.sh
Created March 20, 2017 03:49 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@jmwdpk
jmwdpk / r-interview.md
Created March 10, 2016 19:41 — forked from peterhurford/r-interview.md
R Interview Questions

1.) If I have a data.frame df <- data.frame(a = c(1, 2, 3), b = c(4, 5, 6), c(7, 8, 9))...

1a.) How do I select the c(4, 5, 6)?

1b.) How do I select the 1?

1c.) How do I select the 5?

1d.) What is df[, 3]?

@jmwdpk
jmwdpk / SQL-Social-Network.sql
Created February 28, 2016 05:21
My answers to SQL exercises for db-class.org /Part 2/
/* Delete the tables if they already exist */
drop table if exists Highschooler;
drop table if exists Friend;
drop table if exists Likes;
/* Create the schema for our tables */
create table Highschooler(ID int, name text, grade int);
create table Friend(ID1 int, ID2 int);
create table Likes(ID1 int, ID2 int);