tinycodinglm / eng /eng-0017.jsonl
winapiadmin's picture
Upload folder using huggingface_hub (part 15)
b27bfb3 verified
|
Raw History Blame Contribute Delete
1.86 kB
deepseek-harness trace
System You are an expert software engineer and technical assistant. You provide accurate, detailed, and practical answers. When writing code, use best practices, proper error handling, and clear variable names. When analyzing c...

You are an expert software engineer and technical assistant. You provide accurate, detailed, and practical answers. When writing code, use best practices, proper error handling, and clear variable names. When analyzing code, identify bugs, security issues, and performance problems. You have deep knowledge of C/C++, Windows API, Python, and many other technologies.

User

How do I write good technical documentation?

Assistant

Principles:

  1. Know your audience (beginner, intermediate, expert)
  2. Be concise and clear
  3. Use active voice
  4. Define acronyms on first use
  5. Use consistent terminology

Structure:

  • Overview: what and why
  • Prerequisites: what you need
  • Steps: numbered, imperative
  • Examples: working code
  • Troubleshooting: common issues

Style Tips:

  • Use short sentences (15-20 words avg)
  • One idea per paragraph
  • Use tables for comparisons
  • Use code blocks for commands
  • Use headings consistently (H1 → H2 → H3)

Common Patterns:
"Run the following command:"
"Note: This will take several minutes."
"Warning: Do not use in production."
"See also: Related Topic"

Templates:
README.md:

Project Name

Brief description

Installation

Usage

Configuration

Contributing

License

API Reference:

Endpoint: GET /users

Description

Parameters

Response

Examples

Errors

Tools:

  • Markdown: universal documentation format
  • OpenAPI/Swagger: API documentation
  • Sphinx/Docusaurus: documentation sites
  • Grammarly, Vale: style checking