Unit 8 / 11

Documentation and Technical Writing: Whitepaper, NatSpec and User Guide

Gains:

  • Being able to use artificial intelligence safely in producing whitepaper, NatSpec, technical-simple translation and risk disclosure and understanding that this is the most productive field.
  • Ability to verify each technical claim with actual code and remove exaggeration and warranty language to avoid the risk of incorrect documentation
  • Ability to embrace risks honestly, 'not financial advice' warning and documentation-code consistency

Documentation in Web3 is not a luxury, but a matter of security and trust. By interacting with a smart contract, the user risks his real money; If he doesn't understand what he is doing, he is open to being deceived. The auditor cannot safely review code that is not well documented. In this unit, we cover the area where AI is most reliable and efficient: documentation and technical writing. From whitepaper to in-code comments, from user guide to risk disclosures, AI is a real force multiplier here — as long as accuracy is humanely monitored.

Types of Web3 documentation

  • Whitepaper / litepaper: The basic document describing the vision, mechanism and tokenomics of the project.
  • Technical documentation: Contract interfaces, integration guide for developers.
  • NatSpec (Ethereum Natural Language Specification — Standard in-code comment format in Solidity that describes what functions do): Documentation embedded in code, read by both human and tool.
  • User guide: Plain text telling the end user "how to use, what risks there are".
  • Disclaimer: Legally and ethically required warnings.

A common problem with these types: developers do not like to write and often leave it to the last moment. AI fills exactly this gap.

Why documentation is the safest area of AI

The cost of error in documentation is lower than in auditing: one incorrect sentence is corrected, no money flies (directly). Additionally, AI is naturally strong at language production. So AI is both efficient and relatively safe here. But two critical risks remain:

  1. False technical claim: AI may misrepresent what the code does; This misleads the user and can become a security vulnerability (unless it says "this function protects your funds" and doesn't).
  2. Hyperbole/marketing language: AI can produce language that makes a project seem safe or profitable; This is both an ethical and legal problem.
Caution: The documentation describes the code; It's not the code itself. Every technical assertion that the AI ​​writes ("this happens", "that maintains") must be verified against actual code. Incorrect documentation can be more dangerous than correct code because the user trusts the documentation.

Layers of using AI in documentation

1. NatSpec generation. The AI ​​reads an existing function and drafts the NatSpec interpretation: what it does, what its parameters are, what it returns. This simplifies inspection and maintenance.

2. Technical-simple translation. AI translates a complex mechanism into language that the end user can understand — one of the biggest needs of Web3.

3. Whitepaper outline and structure. AI produces the skeleton and sections of a whitepaper; Content accuracy is human.

4. Multilingualism and level adjustment. AI can produce the same content, both technical and plain, in both Turkish and English.

Weak prompt / Strong prompt

Weak prompt:

Write a whitepaper for this project.

The AI ​​makes up exaggerated, possibly false, and marketing-filled copy without knowing the actual mechanism.

Powerful prompt:

Your role: Web3 technical writer. Below is the REAL mechanism, tokenomics and code of the project. Write a draft of a whitepaper based solely on this information. Rules:- Do not exaggerate, DO NOT use phrases like "guaranteed profit", "completely safe" etc.- Base each technical claim on the mechanism I give; Don't add fabrication.- Add a "Risks" section that clearly states the risks.- Add a warning "This is not financial advice." Mark any information you are unsure of or that I don't have as [TO BE FILLED].

Four copyable templates

1) NatSpec generation:

Write standard NatSpec comments to the following function: @notice (what does, plain), @dev (technical note), @param and @return. Write only what the code ACTUALLY does; Adding behavior that is not in the code. Flag the effect you are not sure about.

2) Technical-simple translation:

Explain this mechanism in plain Turkish that a crypto novice user can understand: what does it do, what should the user do, WHAT RISKS are there? Exaggeration; no guarantee of security. Don't hide risks, bring them to the fore.

3) Risk/warning section:

Write an honest "Risks and Caveats" section for this project: smartcontract risk, market risk, liquidity risk, regulatory uncertainty, key loss. Explain each risk in plain language. Don't underestimate the risks; end with "this is not financial advice."

4) Documentation-code consistency check:

Below is a function and its available documentation. Mark places where the document contradicts or omits the ACTUAL behavior of the code. Final decision making; Submit it for "developer verification".

Three mini cases (in numbers)

Case 1 — NatSpec stepped up inspection. One team submitted a 25-function contract for review without comment; The auditor asked for extra time to understand the logic. The team produced NatSpec drafts with AI and confirmed each with code; Audit preparation was shortened by almost 1 day. Lesson: good documentation reduces audit cost.

Case 2 — False claim caught. The user manual that YZ produced stated that “your funds may be withdrawn at any time”; whereas there was a 7-day lock in the contract. The technical review caught this. If it were published, users would be mistaken and victimized. Lesson: every technical claim is confirmed by code.

Case 3 — Exaggeration cleared up. In the first whitepaper draft, AI used expressions such as "high return without risk". The team removed these and added an honest risk section. This protected the project both ethically and legally. Lesson: AI's marketing bias must be audited.

Ethical burden of documentation

Web3 documentation is read in a context where the user is risking their money. Therefore:

  • Honesty: Risks cannot be hidden and exaggerated promises cannot be made.
  • Accuracy: Technical claims must match the code; "The document says so" is not a defense, but rather a misrepresentation.
  • Accessibility: Writing in language the user actually understands is a security measure; A document that is not understood is an invitation to deception.
  • Disclaimer: It should be clearly stated that it is not financial advice and regulatory uncertainty.
Tip: Honesty test of a Web3 document: "If a user puts money in trusting only this document, will he feel deceived when faced with the truth?" Always have the AI ​​highlight the risk part, not bury it at the end.

Common mistakes

  • Not confirming the technical claim with code. The wrong document misleads the user.
  • Dropping the hype/marketing language. Ethical and legal risk.
  • Minimizing or hiding risks. Breach of trust.
  • Printing whitepaper without giving the real mechanism to the AI. It produces fabrications.
  • Ignoring the "not financial advice" warning. Legal obligation.
  • Not keeping documentation in sync with code. When the code changes, the document becomes misleading.

In summary

  • Documentation is a matter of security and trust in Web3; It is the most productive field of AI.
  • The cost of error is relatively low, but false technical claims and exaggeration are serious risks.
  • Every technical claim must be confirmed by real code; The document does not replace the code.
  • Risks should be written honestly and prominently; Exaggeration and guarantee language should be removed.
  • “It is not financial advice” and regulatory warnings are mandatory.

Application task

Get a smart contract function. Give the AI ​​the “Generate NatSpec” prompt and compare the generated interpretation line by line with the actual behavior of the code — are there any disagreements? Then produce a "technical-plain translation" and a "risk/warning section" for the same function. Find and correct at least one statement of the AI ​​that is exaggerated or contradicts the code.

checklist

  • [ ] I confirmed every technical claim with actual code.
  • [ ] I removed the exaggerations/guarantees.
  • [ ] I wrote the risks honestly and highlighting them.
  • [ ] I gave the AI ​​the real mechanism; I didn't let him make it up.
  • [ ] I added the warning "This is not financial advice."
  • [ ] I wrote NatSpec in full for vehicle and control.
  • [ ] I planned to keep the documentation in sync with the code.