Declarative .mdcCursor/Claude/Windsurf नियम और n8n वर्कफ़्लोज़एजेंट कौशलजीरो-सीक्रेट लीक का ऑडिट किया गया

गो 1.27 + जीक्यूएलजेन + पीजीएक्स/वी5 लो-मेमोरी माइक्रोसर्विस स्किल

<50MB RSS Go GraphQL के निर्माण के लिए घोषणात्मक CLAUDE.md और .mdc इंजीनियरिंग कौशल, संकलन-समय gqlgen रिज़ॉल्वर और बाउंडेड pgxpool कनेक्शन के साथ बैकएंड होता है।

घोषणात्मक एजेंट और आईडीई नियम फ़ाइलें

---
description: Go 1.27, gqlgen GraphQL resolvers, and pgx/v5 PostgreSQL pool patterns for sub-50MB microservices
globs: backend/**/*.{go,graphqls,yml}
alwaysApply: false
---

# Go 1.27 + gqlgen + pgx/v5 Production Architecture

- Configure `pgxpool` with `MaxConns = 10`, `MinConns = 1`, and `MaxConnIdleTime = 5 * time.Minute` to keep microservice RAM under 40–60 MB RSS.
- Propagate `context.Context` with explicit timeouts (`context.WithTimeout(ctx, 5*time.Second)`) across every SQL query and outbound HTTP request.
- Use parameterized `$1, $2` placeholders exclusively in `pgx` queries; never concatenate raw user input into SQL strings.
- Project localized JSONB payloads directly in PostgreSQL (`COALESCE(translations->$1, translations->'en')`) instead of unmarshaling all 26 locales in Go memory.
- Compile production binaries with `-ldflags='-s -w'` and bind internal API listeners strictly to `127.0.0.1:<PORT>` behind Nginx.

## Verification Check
```bash
go vet ./... && go build -ldflags='-s -w' ./cmd/server
```

सामुदायिक सेटअप नोट्स और उत्पादन समीक्षाएँ (0)

अभी तक कोई सामुदायिक नोट नहीं. नीचे अपना उत्पादन कॉन्फ़िगरेशन टिप साझा करें।

एक सेटअप नोट या सत्यापन टिप पोस्ट करें

एक्सपोज़्ड MCP टूल्स और रिसोर्स स्कीमा इंस्पेक्टर

उपकरण/संसाधन पहचानकर्ताइनपुट पैरामीटर्सनिष्पादन व्यवहार
bounded_pgxpool_configinternal/db/*.goEnforces MaxConns <= 10, context deadlines, and single-query JSONB projection.
compile_time_gqlgen_resolversgraph/*.goPrevents reflection bottlenecks and N+1 resolver loops.