smithery/valec3

frontend-data-fetching-strategy

Standardized guidelines and patterns for Frontend Data Fetching Strategy.

Installation

$ npx skills add smithery/valec3 --skill frontend-data-fetching-strategy

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/valec3 · top by installs.

npx skills add smithery/valec3

Browse all from smithery/valec3

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,198 B
  • docs SUMMARY.md 112 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Frontend Data Fetching Strategy

When to use this skill

  • Choosing data fetching approach
  • Optimizing data loading
  • Improving perceived performance

Workflow

  • Choose CSR vs SSR vs SSG
  • Implement data fetching pattern
  • Add loading states
  • Handle errors
  • Optimize with caching

Instructions

Strategies

Client-Side Rendering (CSR)

function Users() {
  const { data } = useQuery('users', fetchUsers);
  return <UserList users={data} />;
}

Server-Side Rendering (SSR)

// Next.js
export async function getServerSideProps() {
  const users = await fetchUsers();
  return { props: { users } };
}

export default function Page({ users }) {
  return <UserList users={users} />;
}

Static Site Generation (SSG)

// Next.js
export async function getStaticProps() {
  const users = await fetchUsers();
  return { props: { users }, revalidate: 60 };
}

Resources

  • CSR: Dynamic data, authenticated
  • SSR: SEO, real-time data
  • SSG: Static content, best performance