Skip to content

Instantly share code, notes, and snippets.

Как писать программы при помощи ЛЛМ в 10 раз быстрее, чтобы они б*ь работали как надо?

ЛЛМ потрясающе умные и потрясающе тупые. От диалога с ЛЛМ меня бросает то в эйфорию, то в отчаяние. Кажется, что можно получить x10 производительности труда, но на практике на часах 2 часа ночи, а я ору матом на Клода. Так жить нельзя. Настало время остановиться, выдохнуть и подумать, как использовать ЛЛМ как левередж.

Разработка при помощи ЛЛМ делится на две части:

  • Микро - когда у нас маленькая задача, занимающая минимум контекста, а ЛЛМ нужно следовать до 100 инструкций (для claude 3.7 ~95% точность Writing a good CLAUDE.md). В этом режиме мы не сталкиваемся с "dumb zone", и ЛЛМ может выполнить все инструкции без деградации
  • Макро - когда у нас куча уже написанного кода, куча инструкций и все это нужно нарезать на "Микро" контексты
name feature
description Use when the user asks to add, change, or refactor functionality. Research-driven TDD with refactoring and deduplication.
argument-hint <feature description>
user-invocable true

Feature: $ARGUMENTS

You are implementing a feature using a rigorous sequence of Research → Development → Refactor → Deduplication. You MUST complete every phase. Announce each phase transition explicitly (e.g. "Phase 3: Refactor").

--[[
=====================================================================
==================== READ THIS BEFORE CONTINUING ====================
=====================================================================
Kickstart.nvim is *not* a distribution.
Kickstart.nvim is a template for your own configuration.
The goal is that you can read every line of code, top-to-bottom, understand
import {connect} from 'mongoose'
import {messages} from './messages'
connect(
// Do not commit prod credentials to git tho
'mongodb+srv://NToss:aKmgd43Sf1@cluster0.bkca8.mongodb.net/myFirstDatabase?retryWrites=true&w=majority'
)
.then(() => console.log('Successfully connected to the database'))
.catch(err => console.log('Could not connect to the database. Error...', err))
const mongoose = require("mongoose");
const AppSchema = mongoose.Schema({
message: String,
});
module.exports = mongoose.model("App", AppSchema);
import {Router} from 'express'
import {model, Schema} from 'mongoose'
const Message = model(
'Message',
new Schema({
message: {type: String, required: true},
}),
)
const App = require("../model/app.model.js");
// Create and Save a new Message
exports.create = (req, res) => {
const message = new App({
message: req.body.message,
});
message
.save()
.then((data) => {
module.exports = (app) => {
const App = require("../controllers/app.controller.js");
app.post("/create", App.create);
app.get("/get-all", App.findAll);
app.get("/message/:messageId", App.findOne);
app.put("/message/:messageId", App.update);
const app = express();
app.use(bodyParser.urlencoded({extended: true}));
app.use(bodyParser.json());
app.get("/", (req, res) => {
res.json({message: "Server is running :D"});
});
require("./app/routes/app.routes.js")(app);
const {Pool} = require('pg')
const app = express()
const pool = new Pool({
// confing
})
app.get('/submissions', requiresAuth(), async (req, res) => {
const {rows} = await pool.query(
`
SELECT *