Comprehensive developer toolkit providing reusable skills for Java/Spring Boot, TypeScript/NestJS/React/Next.js, Python, PHP, AWS CloudFormation, AI/RAG, DevOps, and more.
89
89%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Risky
Do not use without reviewing
Enforce consistent data fetching patterns using SWR for server state management, custom hooks for data access, and proper mutation handling.
Use SWR as the single data fetching library. Do not mix with React Query, axios interceptors, or raw fetch in components:
import useSwr from 'swr';
import useSWRInfinite from 'swr/infinite';Encapsulate every API call in a dedicated custom hook following the pattern use{Action}{Resource}:
// data-access/get-users.hooks.ts
export function useGetUsers(params: UseGetUsersParams) {
const fetcher = useFetcherWithAcceptLanguage();
const query = buildQueryString(params);
const result = useSwr<PaginatedResponseDto<UserDto>>(
`/api/users?${query}`,
fetcher
);
return {
...result,
data: result.data,
error: result.error,
};
}
// data-access/get-user-me.hooks.ts
export function useGetUserMe() {
const fetcher = useFetcherWithAcceptLanguage();
return useSwr<SafeUserDto>('/api/users/me', fetcher);
}| Pattern | Usage | Example |
|---|---|---|
useGet{Resource} | Fetch single/list resource | useGetUsers, useGetOrderById |
useCreate{Resource} | POST mutation hook | useCreateOrder, useCreateUser |
useUpdate{Resource} | PUT/PATCH mutation hook | useUpdateOrder |
useDelete{Resource} | DELETE mutation hook | useDeleteOrder |
Data access hooks go in a data-access/ directory with .hooks.ts suffix:
feature/
└── data-access/
├── get-orders.hooks.ts
├── create-order.hooks.ts
└── get-order-detail.hooks.tsUse useSWRInfinite for paginated or infinite scroll data:
export function useGetOrders(params: UseGetOrdersParams) {
const fetcher = useFetcherWithAcceptLanguage();
const result = useSWRInfinite<PaginatedResponseDto<OrderDto>>(
(index) => `/api/orders?page=${index}&${buildQuery(params)}`,
fetcher
);
const data = result.data?.flatMap((page) => page.data) ?? [];
const count = result.data?.[0]?.count ?? 0;
return { ...result, data, count };
}Mutations are imperative functions within hooks, not managed by SWR caching:
export function useCreateOrder() {
const fetcher = useFetcherWithAcceptLanguage();
async function createOrder(data: CreateOrderDto): Promise<OrderDto> {
const result = await fetcher('/api/orders', {
method: 'POST',
body: data,
});
return handle<OrderDto>(result);
}
return { createOrder };
}Provide reusable fetcher functions via a shared data-access library:
useFetcherWithAcceptLanguage() — JSON fetcher with language headerusePlainFetcherWithAcceptLanguage() — Raw Response fetcher for file downloadsFetchers handle token injection, language headers, and base URL configuration.
Use a shared error handler utility for consistent error handling across hooks:
const { handleError } = useHandleRespError();
try {
const result = await createOrder(data);
// success handling
} catch (error) {
handleError(error);
}// data-access/get-orders.hooks.ts
export function useGetOrders(filters: OrderFilters) {
const fetcher = useFetcherWithAcceptLanguage();
const query = new URLSearchParams(filters).toString();
return useSwr<PaginatedResponseDto<OrderDto>>(
`/api/orders?${query}`,
fetcher
);
}
// Component usage
function OrderList() {
const { data, error, isLoading } = useGetOrders({ status: 'active' });
if (isLoading) return <Spinner />;
if (error) return <Alert type="error" message={error.message} />;
return <Table data={data.data} />;
}// Raw fetch in component — no abstraction
function OrderList() {
const [orders, setOrders] = useState([]);
useEffect(() => {
fetch('/api/orders').then(r => r.json()).then(setOrders);
}, []);
}
// Mixing data fetching libraries
import { useQuery } from '@tanstack/react-query'; // Don't mix with SWR
import axios from 'axios'; // Don't use axios directly in componentsdocs
plugins
developer-kit-ai
developer-kit-aws
agents
docs
skills
aws
aws-cli-beast
aws-cost-optimization
aws-drawio-architecture-diagrams
aws-sam-bootstrap
aws-cloudformation
aws-cloudformation-auto-scaling
aws-cloudformation-bedrock
aws-cloudformation-cloudfront
aws-cloudformation-cloudwatch
aws-cloudformation-dynamodb
aws-cloudformation-ec2
aws-cloudformation-ecs
aws-cloudformation-elasticache
references
aws-cloudformation-iam
references
aws-cloudformation-lambda
aws-cloudformation-rds
aws-cloudformation-s3
aws-cloudformation-security
aws-cloudformation-task-ecs-deploy-gh
aws-cloudformation-vpc
references
developer-kit-core
agents
commands
skills
developer-kit-devops
developer-kit-java
agents
commands
docs
skills
aws-lambda-java-integration
aws-rds-spring-boot-integration
aws-sdk-java-v2-bedrock
aws-sdk-java-v2-core
aws-sdk-java-v2-dynamodb
aws-sdk-java-v2-kms
aws-sdk-java-v2-lambda
aws-sdk-java-v2-messaging
aws-sdk-java-v2-rds
aws-sdk-java-v2-s3
aws-sdk-java-v2-secrets-manager
clean-architecture
graalvm-native-image
langchain4j-ai-services-patterns
references
langchain4j-mcp-server-patterns
references
langchain4j-rag-implementation-patterns
references
langchain4j-spring-boot-integration
langchain4j-testing-strategies
langchain4j-tool-function-calling-patterns
langchain4j-vector-stores-configuration
references
qdrant
references
spring-ai-mcp-server-patterns
spring-boot-actuator
spring-boot-cache
spring-boot-crud-patterns
spring-boot-dependency-injection
spring-boot-event-driven-patterns
spring-boot-openapi-documentation
spring-boot-project-creator
spring-boot-resilience4j
spring-boot-rest-api-standards
spring-boot-saga-pattern
spring-boot-security-jwt
assets
references
scripts
spring-boot-test-patterns
spring-data-jpa
references
spring-data-neo4j
references
unit-test-application-events
unit-test-bean-validation
unit-test-boundary-conditions
unit-test-caching
unit-test-config-properties
references
unit-test-controller-layer
unit-test-exception-handler
references
unit-test-json-serialization
unit-test-mapper-converter
references
unit-test-parameterized
unit-test-scheduled-async
references
unit-test-service-layer
references
unit-test-utility-methods
unit-test-wiremock-rest-api
references
developer-kit-php
developer-kit-project-management
developer-kit-python
developer-kit-specs
commands
docs
hooks
test-templates
tests
skills
developer-kit-tools
developer-kit-typescript
agents
docs
hooks
rules
skills
aws-cdk
aws-lambda-typescript-integration
better-auth
clean-architecture
drizzle-orm-patterns
dynamodb-toolbox-patterns
references
nestjs
nestjs-best-practices
nestjs-code-review
nestjs-drizzle-crud-generator
nextjs-app-router
nextjs-authentication
nextjs-code-review
nextjs-data-fetching
nextjs-deployment
nextjs-performance
nx-monorepo
react-code-review
react-patterns
shadcn-ui
tailwind-css-patterns
tailwind-design-system
references
turborepo-monorepo
typescript-docs
typescript-security-review
zod-validation-utilities
references
github-spec-kit