Skip to content

Instantly share code, notes, and snippets.

View danwashusen's full-sized avatar

Dan Washusen danwashusen

  • Melbourne, Australia
View GitHub Profile
@danwashusen
danwashusen / iam_opensearch_request.py
Created September 1, 2022 04:22
A very simple Ansible module to send IAM v4 signed requests to an OpenSearch domain
#!/usr/bin/python3
# NOTE: must be in the ./library directory
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
from ansible.module_utils.basic import AnsibleModule
from requests_aws4auth import AWS4Auth
@danwashusen
danwashusen / chatgpt-ultrawide.js
Last active April 30, 2023 00:10
A very simple tampermonkey script to make ChatGPT more UltraWide monitor friendly.
// ==UserScript==
// @name ChatGPT Ultrawide
// @namespace https://github.com/danwashusen/tampermonkey/chatgpt-ultrawide
// @version 0.1
// @description Aims to make ChatGPT more UltraWide friendly.
// @author Dan W
// @match https://chat.openai.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=openai.com
// @grant none
// ==/UserScript==
@danwashusen
danwashusen / CLAUDE.md
Last active September 1, 2025 07:25
Prompt to populate the CLAUDE.md file used by Claude Code with based info about BMAD Personas

An example of the CLAUDE.md file with the personas and guard rails gererate by the prompt

Claude Code Configuration

MANDATORY: Check Task-Persona Alignment

BEFORE executing any task, you MUST:

  1. Check if task matches a BMad persona role (see mapping below)
  2. If match found, IMMEDIATELY respond: "This task involves [task type] which is typically handled by the /BMad:agents:[persona] persona.
@danwashusen
danwashusen / mcp-instructions-updater.md
Created September 1, 2025 00:27
Claude Code Agent that updates the CLAUDE.md file with MCP server usage instructions

name: mcp-instructions-updater description: Use this agent when you need to update the MCP Server Usage section in CLAUDE.md files to reflect the current MCP server configuration. This agent should be used after adding new MCP servers, when MCP server configurations change, or when the documentation needs to be synchronized with the actual MCP setup. Examples: Context: User has added a new MCP server to their project and wants to update the documentation.user: "Update the MCP instructions in CLAUDE.md"assistant: "I'll use the mcp-instructions-updater agent to update the MCP Server Usage section based on the current configuration"Since the user wants to update MCP instructions, use the Task tool to launch the mcp-instructions-updater agent to examine the configuration and update the documentation. Context: User notices the MCP documentation is out of sync with actual servers.user: "The MCP section in CLAUDE.md is outdated"assistant: "Let me use the mcp-i

@danwashusen
danwashusen / implement-tasks.md
Last active September 14, 2025 00:53
spec-kit commands to implement and validate tasks

Intelligently implement tasks from a tasks.md file with analysis, validation, and progress tracking.

Given the tasks document path as an argument (e.g., "specs/002-feature/tasks.md"), perform:

  • Pre-implementation analysis to understand current state
  • Smart task selection respecting dependencies and priorities
  • Implementation with validation and quality gates
  • Progress tracking with checkbox updates
  • Post-implementation testing and verification

Inputs