본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

doc-accurate-codegen

tobisamaa 제작

Calendar & Scheduling
343clawskills.sh가 보고한 다운로드 수
0조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

Generate code that references actual documentation, preventing hallucination bugs.

설명

이 스킬이 하는 일

Enforces documentation-first code generation to prevent LLM hallucination bugs. Before writing any code, it loads relevant docs, extracts actual API signatures, and validates the output against them. Works for API usage, configuration files, and feature implementation.

Code generators that rely on training data alone will hallucinate method names and parameters; this skill forces every generation step to reference live documentation instead.

사용 시점

  • Generating code for an unfamiliar third-party API
  • Writing configuration files for a new tool or framework
  • Updating code after a library releases breaking changes
  • Implementing a feature with an SDK you haven't used before
  • Verifying that a method signature hasn't been renamed or removed

예시 워크플로

입력

User asks: Write a Python script that uses the requests library to fetch paginated API results

에이전트
  1. 1

    Fetches the official requests library documentation via web_fetch

  2. 2

    Extracts method signatures for Session, get, and response handling

  3. 3

    Generates Python code using exact parameter names and return types from docs

  4. 4

    Validates generated code against the extracted signatures

  5. 5

    Returns code with documentation source references and validation status

출력

Validated Python script with inline doc source references and confirmed API signatures

요구 사항

  • BRAVE_API_KEY environment variable

설치

clawhub install tobisamaa/doc-accurate-codegen

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크