vibes-plug 2.14.1 → 3.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/rules/vibes-plug-core.md +5 -0
- package/.cursor/rules/vibes-plug-core.mdc +7 -2
- package/.cursorrules +8 -2
- package/AGENTS.md +23 -2
- package/CHANGELOG.md +114 -0
- package/CLAUDE.md +10 -3
- package/README.md +216 -611
- package/bin/vibes.mjs +1104 -0
- package/package.json +11 -3
- package/plugin.json +4 -3
- package/scripts/check-anti-slop.mjs +53 -0
- package/scripts/install.js +3 -1
- package/scripts/update_skills.js +1 -1
- package/scripts/update_skills.mjs +86 -0
- package/scripts/validate-skills.mjs +111 -0
- package/skills/accessibility-testing-expert/SKILL.md +117 -116
- package/skills/affective-computing-emotion-ai/SKILL.md +83 -0
- package/skills/agentic-coding-workflow-expert/SKILL.md +297 -0
- package/skills/agentic-memory-architect/SKILL.md +52 -0
- package/skills/agentic-micro-economy-architect/SKILL.md +92 -0
- package/skills/ai-llm-integration-expert/SKILL.md +330 -194
- package/skills/ai-media-generation-expert/SKILL.md +173 -172
- package/skills/ai-prompt-engineering-expert/SKILL.md +204 -134
- package/skills/ai-safety-governance-expert/SKILL.md +223 -0
- package/skills/angular-expert/SKILL.md +149 -148
- package/skills/anti-slop/SKILL.md +134 -133
- package/skills/api-design-expert/SKILL.md +4 -3
- package/skills/api-gateway-proxy-expert/SKILL.md +3 -2
- package/skills/app-analyzer-optimizer/SKILL.md +4 -3
- package/skills/apple-ecosystem-expert/SKILL.md +6 -5
- package/skills/astro-framework-expert/SKILL.md +201 -200
- package/skills/async-queue-temporal-expert/SKILL.md +218 -217
- package/skills/authentication-identity-expert/SKILL.md +174 -173
- package/skills/autonomous-red-teamer/SKILL.md +338 -203
- package/skills/autonomous-tdd-debugger/SKILL.md +6 -5
- package/skills/biome-linter-formatter-expert/SKILL.md +90 -89
- package/skills/blockchain-web3-expert/SKILL.md +116 -115
- package/skills/brainstorming/SKILL.md +392 -377
- package/skills/browser-automation-expert/SKILL.md +260 -222
- package/skills/bun-runtime-expert/SKILL.md +5 -4
- package/skills/chatbot-messaging-expert/SKILL.md +115 -114
- package/skills/ci-cd-devops-architect/SKILL.md +3 -2
- package/skills/cloud-hosting-expert/SKILL.md +5 -4
- package/skills/coderabbit/SKILL.md +5 -4
- package/skills/compliance-gdpr-privacy-expert/SKILL.md +3 -2
- package/skills/composable-mach-architect/SKILL.md +338 -0
- package/skills/cron-scheduler-expert/SKILL.md +5 -4
- package/skills/data-pipeline-etl-expert/SKILL.md +3 -2
- package/skills/data-telemetry-expert/SKILL.md +5 -4
- package/skills/data-visualization-expert/SKILL.md +155 -154
- package/skills/database-orm-expert/SKILL.md +166 -165
- package/skills/deep-research-analyst/SKILL.md +182 -136
- package/skills/dependency-upgrade-migrator/SKILL.md +11 -10
- package/skills/design-system-architect/SKILL.md +4 -3
- package/skills/desktop-electron-expert/SKILL.md +129 -128
- package/skills/documentation-site-expert/SKILL.md +60 -59
- package/skills/doku-mcp-server/SKILL.md +5 -4
- package/skills/doku-payment-gateway/SKILL.md +250 -232
- package/skills/domain-driven-design-expert/SKILL.md +3 -2
- package/skills/e2e-testing-expert/SKILL.md +5 -4
- package/skills/ecommerce-expert/SKILL.md +88 -87
- package/skills/email-notification-expert/SKILL.md +5 -4
- package/skills/ephemeral-generative-ui-architect/SKILL.md +88 -0
- package/skills/error-resilience-expert/SKILL.md +14 -13
- package/skills/event-driven-architect/SKILL.md +5 -4
- package/skills/feature-flag-analytics-expert/SKILL.md +3 -2
- package/skills/file-upload-media-expert/SKILL.md +5 -4
- package/skills/firebase-security-expert/SKILL.md +5 -4
- package/skills/form-validation-expert/SKILL.md +7 -6
- package/skills/frontier-ai-models-expert/SKILL.md +116 -0
- package/skills/fullstack-expert/SKILL.md +185 -184
- package/skills/gemini-agent-booster/SKILL.md +248 -172
- package/skills/geospatial-maps-expert/SKILL.md +81 -80
- package/skills/global-a11y-i18n-expert/SKILL.md +5 -4
- package/skills/glsl-shader-expert/SKILL.md +191 -190
- package/skills/go-programming-expert/SKILL.md +5 -4
- package/skills/graph-rag-knowledge-expert/SKILL.md +201 -200
- package/skills/graphql-apollo-expert/SKILL.md +5 -4
- package/skills/headless-cms-expert/SKILL.md +182 -181
- package/skills/hig/SKILL.md +5 -4
- package/skills/js-backend-expert/SKILL.md +219 -218
- package/skills/legacy-code-translator/SKILL.md +6 -5
- package/skills/llm-finops-router/SKILL.md +52 -0
- package/skills/local-slm-edge-ai-expert/SKILL.md +168 -167
- package/skills/logging-error-tracking-expert/SKILL.md +5 -4
- package/skills/mcp-server-architect/SKILL.md +315 -307
- package/skills/micro-frontend-architect/SKILL.md +5 -4
- package/skills/mobile-expo-expert/SKILL.md +5 -4
- package/skills/modern-css-native-expert/SKILL.md +190 -189
- package/skills/monorepo-architect/SKILL.md +5 -4
- package/skills/mpa-orchestrator/SKILL.md +41 -4
- package/skills/multi-agent-orchestration/SKILL.md +388 -254
- package/skills/mvc-expert/SKILL.md +5 -4
- package/skills/n8n-automation-expert/SKILL.md +90 -89
- package/skills/nextjs-app-router-expert/SKILL.md +3 -2
- package/skills/openapi-swagger-codegen-expert/SKILL.md +4 -3
- package/skills/payment-gateway-expert/SKILL.md +131 -128
- package/skills/pdf-document-generation-expert/SKILL.md +92 -91
- package/skills/performance-web-vitals/SKILL.md +5 -4
- package/skills/post-quantum-crypto-migrator/SKILL.md +3 -2
- package/skills/prd-architect/SKILL.md +183 -182
- package/skills/proactive-background-watcher/SKILL.md +5 -4
- package/skills/production-ready-hardener/SKILL.md +10 -9
- package/skills/pwa-offline-first-expert/SKILL.md +227 -226
- package/skills/pydantic-ai-expert/SKILL.md +162 -161
- package/skills/python-programming-expert/SKILL.md +5 -4
- package/skills/rate-limit-abuse-prevention/SKILL.md +5 -4
- package/skills/realtime-collaboration-expert/SKILL.md +3 -2
- package/skills/rich-text-editor-expert/SKILL.md +178 -177
- package/skills/rust-programming-expert/SKILL.md +5 -4
- package/skills/saas-architect/SKILL.md +155 -154
- package/skills/saas-billing/SKILL.md +394 -382
- package/skills/saas-multi-tenant/SKILL.md +7 -6
- package/skills/scalability-clean-code/SKILL.md +5 -4
- package/skills/search-engine-expert/SKILL.md +90 -89
- package/skills/self-healing-cloud-orchestrator/SKILL.md +3 -2
- package/skills/senior-frontend/SKILL.md +14 -9
- package/skills/seo/SKILL.md +4 -4
- package/skills/session-memory-manager/SKILL.md +129 -128
- package/skills/solidjs-expert/SKILL.md +81 -80
- package/skills/spa-orchestrator/SKILL.md +5 -4
- package/skills/sse-websocket-streaming-expert/SKILL.md +3 -2
- package/skills/state-management-expert/SKILL.md +5 -4
- package/skills/supabase-security-expert/SKILL.md +5 -4
- package/skills/svelte-sveltekit-expert/SKILL.md +92 -91
- package/skills/svg-animation-motion-expert/SKILL.md +3 -2
- package/skills/synthetic-data-finetuning-expert/SKILL.md +156 -155
- package/skills/tailwind-expert/SKILL.md +62 -5
- package/skills/tanstack-query-expert/SKILL.md +5 -4
- package/skills/tauri-expert/SKILL.md +5 -4
- package/skills/typescript-expert/SKILL.md +5 -4
- package/skills/ui-ux-pro-max/SKILL.md +7 -6
- package/skills/vector-db-rag-expert/SKILL.md +209 -208
- package/skills/vercel-ai-sdk-expert/SKILL.md +226 -181
- package/skills/voice-ai-realtime-agent/SKILL.md +243 -242
- package/skills/vue-frontend-expert/SKILL.md +5 -4
- package/skills/wasm-edge-computing-expert/SKILL.md +3 -2
- package/skills/web-3d-graphics-expert/SKILL.md +314 -313
- package/skills/web-game-engine-expert/SKILL.md +330 -329
- package/skills/web-scraper/SKILL.md +158 -157
- package/skills/website-design-cloner/SKILL.md +5 -4
- package/skills/webxr-ar-vr-expert/SKILL.md +163 -162
- package/skills/wordpress-headless-expert/SKILL.md +145 -144
- package/skills/zero-tech-debt-auditor/SKILL.md +115 -0
- package/skills/zero-to-prod-orchestrator/SKILL.md +281 -229
- package/skills/zero-trust-secret-vault/SKILL.md +3 -2
- package/BLUEPRINT.md +0 -319
- package/skills/bootstrap-to-modern/SKILL.md +0 -94
- package/skills/multiple-entry-points/SKILL.md +0 -91
- package/skills/secure-fuzz-testing/SKILL.md +0 -207
- package/skills/visual-qa-vision-agent/SKILL.md +0 -71
|
@@ -1,148 +1,149 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: angular-expert
|
|
3
|
-
description: "Expert guide for Angular 19+ enterprise applications — Signals, Standalone Components, NgRx SignalStore, SSR with Hydration, and Angular Material 3 / Panduan ahli aplikasi enterprise Angular 19+."
|
|
4
|
-
author: "Roedy Rustam"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
- **`
|
|
19
|
-
- **`
|
|
20
|
-
- **`
|
|
21
|
-
- **`
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
import {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
<
|
|
55
|
-
<
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
)
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
- **`
|
|
139
|
-
- **`
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
-
|
|
147
|
-
-
|
|
148
|
-
-
|
|
1
|
+
---
|
|
2
|
+
name: angular-expert
|
|
3
|
+
description: "Expert guide for Angular 19+ enterprise applications — Signals, Standalone Components, NgRx SignalStore, SSR with Hydration, and Angular Material 3 / Panduan ahli aplikasi enterprise Angular 19+."
|
|
4
|
+
author: "Roedy Rustam"
|
|
5
|
+
version: "3.0.0"
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Angular Expert (2026 Edition)
|
|
9
|
+
|
|
10
|
+
[English](#english) | [Bahasa Indonesia](#bahasa-indonesia)
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
<a name="english"></a>
|
|
15
|
+
## English
|
|
16
|
+
|
|
17
|
+
### Orchestration & Integration
|
|
18
|
+
- **`typescript-expert`**: Strict TypeScript typing and decorators in Angular 19+.
|
|
19
|
+
- **`api-design-expert`**: REST and GraphQL client architecture with Angular `HttpClient`.
|
|
20
|
+
- **`e2e-testing-expert`**: Playwright and Cypress end-to-end testing for Angular apps.
|
|
21
|
+
- **`global-a11y-i18n-expert`**: Angular localized translations (`@angular/localize`) and accessibility compliance.
|
|
22
|
+
- **`ci-cd-devops-architect`**: Dockerizing and deploying Angular SSR applications.
|
|
23
|
+
|
|
24
|
+
### Description
|
|
25
|
+
Production-ready guide for building scalable, enterprise-grade web applications using Angular 19+. Covers modern Standalone Components (NgModule-free), fine-grained Signals (`signal()`, `computed()`, `effect()`), Signal-based inputs/outputs, NgRx SignalStore, deferrable views (`@defer`), SSR with Event Replay hydration, and Angular Material 3.
|
|
26
|
+
|
|
27
|
+
### Trigger Conditions
|
|
28
|
+
- Building or refactoring enterprise-scale Angular applications.
|
|
29
|
+
- Migrating legacy Angular (NgModules / RxJS heavy) to Angular 19+ Standalone Components & Signals.
|
|
30
|
+
- Implementing state management with NgRx SignalStore.
|
|
31
|
+
- Configuring Angular SSR with hydration and deferrable views (`@defer`).
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
### Core Architecture & Modern Patterns
|
|
36
|
+
|
|
37
|
+
#### 1. Standalone Component with Signals & Signal Inputs
|
|
38
|
+
```typescript
|
|
39
|
+
import { Component, signal, computed, input, output, ChangeDetectionStrategy } from '@angular/core';
|
|
40
|
+
import { CommonModule } from '@angular/common';
|
|
41
|
+
|
|
42
|
+
export interface UserItem {
|
|
43
|
+
id: string;
|
|
44
|
+
name: string;
|
|
45
|
+
role: 'admin' | 'member';
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@Component({
|
|
49
|
+
selector: 'app-user-card',
|
|
50
|
+
standalone: true,
|
|
51
|
+
imports: [CommonModule],
|
|
52
|
+
template: `
|
|
53
|
+
<div class="user-card" [class.admin]="isAdmin()">
|
|
54
|
+
<h3>{{ user().name }}</h3>
|
|
55
|
+
<p>Role: {{ user().role }}</p>
|
|
56
|
+
<button (click)="onRoleChange()">Promote</button>
|
|
57
|
+
</div>
|
|
58
|
+
`,
|
|
59
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
60
|
+
})
|
|
61
|
+
export class UserCardComponent {
|
|
62
|
+
// Signal inputs & outputs (Angular 19+)
|
|
63
|
+
user = input.required<UserItem>();
|
|
64
|
+
roleUpdated = output<string>();
|
|
65
|
+
|
|
66
|
+
isAdmin = computed(() => this.user().role === 'admin');
|
|
67
|
+
|
|
68
|
+
onRoleChange() {
|
|
69
|
+
this.roleUpdated.emit(this.user().id);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
#### 2. NgRx SignalStore
|
|
75
|
+
```typescript
|
|
76
|
+
import { signalStore, withState, withComputed, withMethods, patchState } from '@ngrx/signals';
|
|
77
|
+
import { computed, inject } from '@angular/core';
|
|
78
|
+
import { HttpClient } from '@angular/common/http';
|
|
79
|
+
import { rxMethod } from '@ngrx/signals/rxjs-interop';
|
|
80
|
+
import { pipe, switchMap, tap } from 'rxjs';
|
|
81
|
+
|
|
82
|
+
interface ProductsState {
|
|
83
|
+
products: Array<{ id: string; title: string; price: number }>;
|
|
84
|
+
isLoading: boolean;
|
|
85
|
+
filter: string;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
const initialState: ProductsState = {
|
|
89
|
+
products: [],
|
|
90
|
+
isLoading: false,
|
|
91
|
+
filter: '',
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export const ProductsStore = signalStore(
|
|
95
|
+
{ providedIn: 'root' },
|
|
96
|
+
withState(initialState),
|
|
97
|
+
withComputed(({ products, filter }) => ({
|
|
98
|
+
filteredProducts: computed(() =>
|
|
99
|
+
products().filter((p) => p.title.toLowerCase().includes(filter().toLowerCase()))
|
|
100
|
+
),
|
|
101
|
+
totalCount: computed(() => products().length),
|
|
102
|
+
})),
|
|
103
|
+
withMethods((store, http = inject(HttpClient)) => ({
|
|
104
|
+
updateFilter(filter: string) {
|
|
105
|
+
patchState(store, { filter });
|
|
106
|
+
},
|
|
107
|
+
loadProducts: rxMethod<void>(
|
|
108
|
+
pipe(
|
|
109
|
+
tap(() => patchState(store, { isLoading: true })),
|
|
110
|
+
switchMap(() =>
|
|
111
|
+
http.get<Array<{ id: string; title: string; price: number }>>('/api/products').pipe(
|
|
112
|
+
tap((products) => patchState(store, { products, isLoading: false }))
|
|
113
|
+
)
|
|
114
|
+
)
|
|
115
|
+
)
|
|
116
|
+
),
|
|
117
|
+
}))
|
|
118
|
+
);
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
#### 3. Deferrable Views (`@defer`)
|
|
122
|
+
```html
|
|
123
|
+
@defer (on viewport; prefetch on idle) {
|
|
124
|
+
<app-analytics-dashboard [data]="dashboardData()" />
|
|
125
|
+
} @placeholder {
|
|
126
|
+
<div class="skeleton-loader">Loading analytics widget...</div>
|
|
127
|
+
} @error {
|
|
128
|
+
<p>Failed to load analytics dashboard.</p>
|
|
129
|
+
}
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
<a name="bahasa-indonesia"></a>
|
|
135
|
+
## Bahasa Indonesia
|
|
136
|
+
|
|
137
|
+
### Integrasi Orkestrasi
|
|
138
|
+
- **`typescript-expert`**: Penggunaan TypeScript ketat dan dekorator pada Angular 19+.
|
|
139
|
+
- **`api-design-expert`**: Arsitektur klien REST dan GraphQL dengan `HttpClient`.
|
|
140
|
+
- **`e2e-testing-expert`**: Pengujian end-to-end menggunakan Playwright atau Cypress.
|
|
141
|
+
|
|
142
|
+
### Deskripsi
|
|
143
|
+
Panduan produksi untuk membangun aplikasi web skala enterprise menggunakan Angular 19+. Mencakup Standalone Components tanpa NgModule, reaktivitas modern berbasis Signals, NgRx SignalStore, deferrable views (`@defer`), SSR dengan hidrasi Event Replay, dan integrasi Angular Material 3.
|
|
144
|
+
|
|
145
|
+
### Kondisi Pemicu
|
|
146
|
+
- Membangun atau merestrukturisasi aplikasi enterprise Angular.
|
|
147
|
+
- Migrasi Angular lama (berbasis NgModule/RxJS berat) ke Angular 19+ Standalone & Signals.
|
|
148
|
+
- Mengelola state aplikasi menggunakan NgRx SignalStore.
|
|
149
|
+
- Mengoptimalkan performa rendering dengan deferrable views dan SSR hydration.
|
|
@@ -1,133 +1,134 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: anti-slop
|
|
3
|
-
description: "Comprehensive Anti-AI Slop enforcement guide. Updated to include token efficiency and code gardening / Panduan penegakan anti-AI slop komprehensif. Diperbarui dengan efisiensi token dan perawatan kode."
|
|
4
|
-
author: "Roedy Rustam"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
- **
|
|
51
|
-
- **
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
-
|
|
62
|
-
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
- **
|
|
71
|
-
- **
|
|
72
|
-
- **
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
- **
|
|
110
|
-
- **
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
- *
|
|
122
|
-
- *
|
|
123
|
-
- *
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
- `
|
|
130
|
-
- `
|
|
131
|
-
- `
|
|
132
|
-
- `
|
|
133
|
-
- `
|
|
1
|
+
---
|
|
2
|
+
name: anti-slop
|
|
3
|
+
description: "Comprehensive Anti-AI Slop enforcement guide. Updated to include token efficiency and code gardening / Panduan penegakan anti-AI slop komprehensif. Diperbarui dengan efisiensi token dan perawatan kode."
|
|
4
|
+
author: "Roedy Rustam"
|
|
5
|
+
version: "3.0.0"
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Anti-Slop, Token Efficiency & Code Gardening Protocol (2026 Edition)
|
|
9
|
+
|
|
10
|
+
[English](#english) | [Bahasa Indonesia](#bahasa-indonesia)
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
<a name="english"></a>
|
|
15
|
+
## English
|
|
16
|
+
|
|
17
|
+
### Description & Trigger Conditions
|
|
18
|
+
The absolute zero-tolerance standard against AI slop, bloated context, and architectural decay. AI slop manifests as conversational pleasantries, lazy placeholders, speculative over-engineering, decorative comments, and vague buzzwords. This skill enforces rigorous anti-slop rules, token-saving compression, and code gardening across the engineering lifecycle.
|
|
19
|
+
Triggers: Any code generation/modification, automated reviews, long-running sessions, explicit "be concise/minimal" requests, or when a codebase exhibits "AI smell" (inconsistencies, duplication, dead code).
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## The 5 Pillars of AI Slop Elimination
|
|
24
|
+
|
|
25
|
+
### Pillar 1: Conversational & Sycophancy Slop
|
|
26
|
+
- **🔴 Forbidden**: Preambles ("Certainly! I'd be happy to help"), prompt echoing, apology loops, trailing motivational fluff.
|
|
27
|
+
- **✅ Standard**: Imperative, code-first communication. Zero filler.
|
|
28
|
+
|
|
29
|
+
### Pillar 2: Placeholder & Truncation Slop ("Lazy LLM")
|
|
30
|
+
- **🔴 Forbidden**: `// TODO: implement`, `// ... rest of code`, or returning mock arrays when production features are requested.
|
|
31
|
+
- **✅ Standard**: Output must be 100% complete, functional, and production-ready.
|
|
32
|
+
|
|
33
|
+
### Pillar 3: Speculative & Decorative Over-Engineering Slop
|
|
34
|
+
- **🔴 Forbidden**: Creating factory patterns (`IUserServiceFactoryProvider`) for single implementations, triple-validated defensive code when TypeScript/Zod guarantee type safety.
|
|
35
|
+
- **✅ Standard**: YAGNI (You Aren't Gonna Need It). Write the simplest direct implementation. Trust the types.
|
|
36
|
+
|
|
37
|
+
### Pillar 4: Obvious & Decorative Comment Slop
|
|
38
|
+
- **🔴 Forbidden**: Narrating syntax line-by-line (e.g., `// Increment count by 1 \n setCount(count + 1);`).
|
|
39
|
+
- **✅ Standard**: Comments explain WHY (architectural decisions, business constraints), never WHAT.
|
|
40
|
+
|
|
41
|
+
### Pillar 5: Buzzword & Artifact Slop
|
|
42
|
+
- **🔴 Forbidden**: Documents filled with generic marketing jargon ("seamless integration", "robust synergy") with zero technical density.
|
|
43
|
+
- **✅ Standard**: High technical density with explicit schemas, route tables, column types, and verifiable NFR latency budgets.
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## Token Efficiency & Compression Protocol
|
|
48
|
+
|
|
49
|
+
### 1. Response Compression Rules
|
|
50
|
+
- **No preamble/restatement/summaries**: Show code immediately, explain briefly after.
|
|
51
|
+
- **Diff format**: For file edits, show only changed lines.
|
|
52
|
+
- **Bullet > prose**: Use 1-sentence rationales over paragraphs.
|
|
53
|
+
|
|
54
|
+
### 2. Context Window Budget Awareness (200K Context)
|
|
55
|
+
```text
|
|
56
|
+
System prompt + skills: ~15K | Conversation history: ~50K | File reads: ~100K | Response: ~35K
|
|
57
|
+
```
|
|
58
|
+
- Summarize large files mentally; `view_file` only specific sections. Create a checkpoint with `session-memory-manager` when near full.
|
|
59
|
+
|
|
60
|
+
### 3. Tool Call Minimization & First Draft Quality
|
|
61
|
+
- Read multiple files in parallel.
|
|
62
|
+
- Use `grep_search` over full reads.
|
|
63
|
+
- Generate correct, production-ready code with inline error handling on the first try. Avoid edit-retry cycles.
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## Legacy Code Gardening Protocol
|
|
68
|
+
|
|
69
|
+
### 1. Context Drift Analysis & Code Smells
|
|
70
|
+
- **Inconsistent Styles**: Mixed `async/await` vs `.then()`, variable namings (`userId` vs `user_id`). Fix with Prettier/ESLint rules.
|
|
71
|
+
- **Bloated Components**: 5+ states, 10+ props, 20+ imports. Apply Single Responsibility and split them.
|
|
72
|
+
- **Dependency Creep**: Use `npx depcheck` for unused dependencies and `npx bundle-phobia-cli` for sizing.
|
|
73
|
+
- **Graveyard of Dead Utilities**: Use semantic search/grep to find and remove 0-usage exported functions.
|
|
74
|
+
|
|
75
|
+
### 2. 4-Phase Gardening Protocol
|
|
76
|
+
1. **Discovery**: Map file tree, find bloated files, duplicated logic, unused exports, and style drift.
|
|
77
|
+
2. **Triage**: Categorize into Critical (bugs/data loss), High (diverging duplicates), Medium (smells), Low (style).
|
|
78
|
+
3. **Systematic Refactoring**: Start smallest first. Remove dead code, extract duplicates, simplify abstractions, standardize names, add tests.
|
|
79
|
+
4. **Prevention**: Add strict ESLint rules, `depcheck` in CI, and architecture tests.
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## Automated Anti-Slop Audit Script
|
|
84
|
+
Run `scripts/check-anti-slop.js` in CI to detect placeholders (`// ...`), unfinished stubs (`TODO:`), mock data in prod, and syntax narration (`// increment`). Fail builds if AI slop is detected.
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
<a name="bahasa-indonesia"></a>
|
|
89
|
+
## Bahasa Indonesia
|
|
90
|
+
|
|
91
|
+
### Deskripsi & Kondisi Pemicu
|
|
92
|
+
Standar nol-toleransi terhadap AI slop, pemborosan token, dan pembusukan arsitektur. AI slop muncul sebagai basa-basi, placeholder, over-engineering spekulatif, dan komentar dekoratif. Skill ini menegakkan anti-slop, kompresi respons, dan perawatan kode (code gardening).
|
|
93
|
+
Pemicu: Pembuatan/modifikasi kode, review otomatis, sesi panjang, permintaan respons ringkas, atau saat codebase menunjukkan "AI smell" (inkonsistensi, duplikasi, kode mati).
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
### 5 Pilar Utama Pembasmian AI Slop
|
|
98
|
+
|
|
99
|
+
1. **Pilar 1: Eliminasi Basa-Basi Percakapan** - Dilarang menggunakan pengantar atau pengulangan instruksi. Harus *code-first* dan tanpa basa-basi.
|
|
100
|
+
2. **Pilar 2: Larangan Placeholder & Truncation ("Lazy LLM")** - Dilarang keras menggunakan `// TODO` atau memotong kode. Wajib 100% lengkap dan siap produksi.
|
|
101
|
+
3. **Pilar 3: Anti Over-Engineering Spekulatif** - Hindari *factory pattern* atau layer ekstra tanpa alasan. Jangan validasi ganda jika Zod/TypeScript sudah menanganinya. Terapkan YAGNI.
|
|
102
|
+
4. **Pilar 4: Eliminasi Komentar Sintaksis** - Jangan menarasikan baris kode (mis. `// tambah satu`). Komentar hanya untuk menjelaskan MENGAPA (alasan bisnis/arsitektur).
|
|
103
|
+
5. **Pilar 5: Eliminasi Slop Dokumen & Buzzword** - Hindari kata-kata marketing kosong. Gunakan densitas teknis tinggi dengan skema pasti dan metrik konkret.
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
### Protokol Efisiensi & Kompresi Token
|
|
108
|
+
|
|
109
|
+
- **Kompresi Respons**: Gunakan format diff untuk kode. Penjelasan menggunakan poin 1-kalimat daripada paragraf. Tanpa basa-basi.
|
|
110
|
+
- **Budget 200K Konteks**: Batasi baca file penuh; gunakan `grep_search`. Buat checkpoint dengan `session-memory-manager` jika token menipis.
|
|
111
|
+
- **Efisiensi Tool**: Baca file paralel, temukan konten spesifik dengan grep. Hasilkan draf pertama yang siap produksi tanpa siklus edit berulang.
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
### Protokol Berkebun Kode Warisan (Code Gardening)
|
|
116
|
+
|
|
117
|
+
1. **Analisis Context Drift**: Perbaiki inkonsistensi gaya (contoh: `async` vs `then`, `userId` vs `user_id`) dengan ESLint/Prettier.
|
|
118
|
+
2. **Komponen Membengkak**: Pecah komponen yang memiliki >5 state, >10 prop, atau >20 impor berdasarkan Tanggung Jawab Tunggal.
|
|
119
|
+
3. **Utilitas Mati & Dependensi**: Hapus fungsi tanpa penggunaan. Gunakan `npx depcheck` untuk package tidak terpakai dan `bundle-phobia-cli` untuk ukuran.
|
|
120
|
+
4. **Protokol 4 Fase**:
|
|
121
|
+
- *Discovery*: Petakan duplikasi dan kode mati.
|
|
122
|
+
- *Triage*: Kategorikan Kritis hingga Rendah.
|
|
123
|
+
- *Refactoring*: Hapus kode mati, ekstrak duplikat, sederhanakan abstraksi, tambah test.
|
|
124
|
+
- *Prevention*: Tambahkan ESLint strict, depcheck CI, dan uji arsitektur.
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
## Orchestration & Integration
|
|
129
|
+
- `zero-to-prod-orchestrator`: Anti-slop checks at architectural and deployment phases.
|
|
130
|
+
- `session-memory-manager`: Context resets when token budgets approach limits.
|
|
131
|
+
- `scalability-clean-code`: Enforces SOLID boundaries against speculative over-engineering.
|
|
132
|
+
- `autonomous-tdd-debugger`: Validates execution completeness over mock/stub code.
|
|
133
|
+
- `coderabbit` & `brainstorming`: Clean PR reviews and dense documentation.
|
|
134
|
+
- `dependency-upgrade-migrator`: Integrates with dependency audits (`depcheck`).
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: api-design-expert
|
|
3
3
|
description: "Expert guide for designing robust APIs: REST best practices, GraphQL, gRPC, tRPC, OpenAPI/Swagger, API versioning, rate limiting, and contract-first design / Panduan ahli untuk merancang API yang kuat: praktik terbaik REST, GraphQL, gRPC, tRPC, OpenAPI/Swagger, versioning API, rate limiting, dan desain contract-first."
|
|
4
|
-
author: "Roedy Rustam"
|
|
4
|
+
author: "Roedy Rustam"
|
|
5
|
+
version: "3.0.0"
|
|
5
6
|
---
|
|
6
7
|
|
|
7
8
|
# API Design Expert
|
|
@@ -283,7 +284,7 @@ components:
|
|
|
283
284
|
## Bahasa Indonesia
|
|
284
285
|
|
|
285
286
|
### Integrasi Orkestrasi
|
|
286
|
-
Terhubung dan mengorkestrasi skill domain yang relevan seperti `brainstorming`, `zero-to-prod-orchestrator`, dan `
|
|
287
|
+
Terhubung dan mengorkestrasi skill domain yang relevan seperti `brainstorming`, `zero-to-prod-orchestrator`, dan `session-memory-manager` untuk memastikan eksekusi yang kohesif.
|
|
287
288
|
|
|
288
289
|
### Deskripsi
|
|
289
290
|
Panduan ahli untuk merancang, mendokumentasikan, dan mengembangkan API berkualitas produksi. Mencakup pemodelan resource **REST** dan semantik HTTP, desain skema **GraphQL**, **gRPC** dengan protobuf, dan **tRPC** untuk API end-to-end type-safe di TypeScript. Termasuk dokumentasi OpenAPI 3.1, strategi versioning API, rate limiting, idempotency, dan alur kerja contract-first.
|
|
@@ -314,4 +315,4 @@ Panduan ahli untuk merancang, mendokumentasikan, dan mengembangkan API berkualit
|
|
|
314
315
|
|
|
315
316
|
|
|
316
317
|
## Orchestration & Integration
|
|
317
|
-
- Connects to other backend skills as part of the orchestration flow.
|
|
318
|
+
- Connects to other backend skills as part of the orchestration flow.
|