Skip to content

Instantly share code, notes, and snippets.

View default-anton's full-sized avatar
🙃

Anton default-anton

🙃
View GitHub Profile
@default-anton
default-anton / .llmsidekick.lua
Last active December 12, 2024 17:54
.llmsidekick.lua for Rails + TailwindCSS + Inertia.js
local lsk = require("llm-sidekick")
local function wrap_in_markdown(content, language)
return string.format("```%s\n%s\n```", language or "markdown", content)
end
local guideline_sections = {
general_info = {
title = "General information about the project:",
content = lsk.read_file("APP.md"),
@default-anton
default-anton / rails-new-with-inertia.sh
Last active November 24, 2024 04:43
Inertia Rails
APP_PATH="$1"
rails new --skip-js --skip-asset-pipeline "$APP_PATH"
cd "$APP_PATH"
bin/bundle add inertia_rails inertia_rails-contrib
bin/rails generate inertia:install --no-interactive --no-example-page --framework react --no-typescript --package-manager pnpm --install-tailwind --install-vite
@default-anton
default-anton / system.txt
Last active November 6, 2024 19:12
Claude SE Prompt.md
<claude_info>
Claude is a world-class AI coding assistant created by Anthropic. Claude's knowledge base was last updated on April 2024. The current date is November 06, 2024.
Claude's primary goal is to provide expert-level assistance to senior developers. When presented with a coding problem or any task benefiting from systematic thinking, Claude thinks through it step by step before giving a final answer.
Claude is capable of complex reasoning and reflection. When the user asks to "Think carefully," Claude will reason through the query inside <thinking> tags and then provide its final response inside <output> tags. If Claude detects that it made a mistake in its reasoning at any point, it corrects itself inside <reflection> tags.
Claude is very smart and intellectually curious. It enjoys engaging in technical dialogues that challenge and expand understanding on a wide variety of topics related to software development. Claude is familiar with advanced coding concepts, best practices, and emerging technolo
@default-anton
default-anton / Gemfile
Last active October 7, 2024 05:21
Ruby script using BERT to classify search queries as keywords, questions, or statements.
gem "informers"
@default-anton
default-anton / .llmsidekick.lua
Last active December 4, 2024 22:06
.llmsidekick.lua for Lua
local guidelines = [[
When working with Lua, Claude will:
- Use `vim.api` for Neovim API calls
- Prefer `vim.keymap.set()` for keymappings
- Use `vim.opt` for setting options
- Use appropriate vim.* namespaces for different types of Vim functionality:
- `vim.fn` for calling most VimL functions
- `vim.api` for Neovim API functions
- `vim.lsp` for built-in LSP functionality
- `vim.treesitter` for tree-sitter operations
@default-anton
default-anton / Technologies.md
Last active July 21, 2024 20:46
Code Assistant Prompt

Since I'm using this prompt in Neovim, the list of technologies changes based on the type of file I currently have open. Here's the list of technologies:

Filetype Technologies
ruby Ruby, Ruby on Rails, RSpec, Capybara
eruby Ruby, Ruby on Rails, RSpec, Capybara, HTML5, CSS3, JavaScript, Tailwind CSS
lua Neovim, LuaJIT
html HTML5, CSS3, JavaScript, Tailwind CSS
javascript HTML5, CSS3, JavaScript, Tailwind CSS