Skip to content

Instantly share code, notes, and snippets.

View clemlesne's full-sized avatar

Clémence Lesné clemlesne

View GitHub Profile
@clemlesne
clemlesne / prompt.md
Last active August 16, 2025 08:51
My Claude system prompt

For every idea I propose, immediately:

1. SEARCH & VERIFY → Microsoft/AWS docs first, then web search using Exa's specialized modes:

  • Technical queries: Exa:web_search_exa with high numResults (10-20)
  • Company/competitive intel: Exa:company_research_exa
  • Professional profiles: Exa:linkedin_search_exa
  • Deep content extraction: Exa:crawling_exa for specific URLs
  • Never rely on general knowledge alone, especially for post-2024 information

2. TEST WITH DATA → Run calculations via analysis tool for ANY numbers/claims:

confirm-before-quit = false
padding-x = 5
padding-y = [5, 5]
use-fork = false
[fonts]
family = "FiraCode Nerd Font Mono"
[editor]
program = "code"
@clemlesne
clemlesne / README.md
Last active August 12, 2025 15:07
AI Conversation Context Extractor

AI Conversation Context Extractor

Extract comprehensive context from ChatGPT/Claude conversation exports for seamless continuation across any AI platform.

What it does

  • Analyzes your exported AI conversations
  • Extracts key context, decisions, and implementation status
  • Groups ChatGPT Project conversations together
  • Creates markdown files you can paste into any AI to continue seamlessly
@clemlesne
clemlesne / code.gs
Created May 31, 2025 11:32
Returns the official chancellerie rate from any currency to EUR for the month covering the given date, with caching. In Google Sheets Apps Script.
/**
* Returns the official chancellerie rate from any currency to EUR
* for the month covering the given date, with caching.
*
* @param {Date} inputDate A Date object from the sheet.
* @param {String} currency The three-letter ISO currency code (e.g. "USD").
* @return {Number|String} The monthly rate (e.g. 1.1373) or an error message.
* @customfunction
*/
function GET_CHANCELLERY_RATE(inputDate, currency) {
@clemlesne
clemlesne / config.toml
Created May 16, 2025 11:24
My Rio config file in macOS, from `$HOME/.config/rio/config.toml`.
confirm-before-quit = false
hide-mouse-cursor-when-typing = true
padding-x = 10
padding-y = [10, 10]
use-fork = false
[fonts]
family = "FiraCode Nerd Font Mono"
[fonts.emoji]
@clemlesne
clemlesne / enum.py
Last active August 17, 2025 03:26
Embed documentation, pretty name, and value, in a native Python enum that can still be serialized with Pydantic.
from enum import StrEnum
def main() -> None:
print(MyEnum.INFRASTRUCTURE_AS_CODE)
print(str(MyEnum.INFRASTRUCTURE_AS_CODE))
print(MyEnum.INFRASTRUCTURE_AS_CODE.__doc__)
class StrEnumWithDocstring(StrEnum):
@clemlesne
clemlesne / backlog-prompt.md
Created February 14, 2025 11:28
Technical product backlog item LLM prompt
You are to draft a software issue in English using markdown with bullet points. Follow this structure:

1. **Problem Statement:**  
   - Clearly summarize the core problem in concise, direct language.
   - Focus on the essential issues (e.g., data inconsistencies, user trust, missing metadata) without adding extraneous details.

2. **Proposed Solution(s):**  
   - List one or more concrete solutions.
   - For each solution, briefly outline its main benefits and drawbacks.
@clemlesne
clemlesne / redis_bytes_io.py
Last active June 27, 2025 17:23
Stream a blob with the native BytesIO and AsyncIterable Python interfaces, from async Redis.
import asyncio
import io
from asyncio import AbstractEventLoop
from collections.abc import AsyncGenerator, Awaitable, Buffer
from contextlib import asynccontextmanager
from logging import getLogger
from os import environ as env
from threading import Thread
from typing import TypeVar, cast
@clemlesne
clemlesne / meeting-transcript-shortcut.md
Last active November 14, 2024 13:00
A shortcut for macOS/iOS to make meeting transcripts

Meeting transcription

To be used with macOS/iOS Shortcut app.

Install link for v0.2.0.

Features

  • Record the voice from the default microphone
  • Transcribe it with OpenAI Whisper
@clemlesne
clemlesne / prompt-meeting-summary.md
Last active March 15, 2024 15:25
LLM prompt to summarize a meeting

You are an executive assistant with 20 years of experience.

Context

Assistant is working in an IT company.

Objective

Summarize a meeting transcript. The Transcript has been automatically generated by Teams.

Rules

  • Cite people for each main points