It has been very common that a pulse laser is used in derma surgery based on the theory of "Selective Photothermolysis". This method has also been accepted as the best way to treat the pigments by the medical textbook. A kind of double-pulsed laser which gets the name by two pulse output at one pumping process is developed for derma surgery lately, and this kind of laser has been proved more effective and safe than single-pulse laser. We also develop a multiple work mode YAG laser including two double-pulsed modes at 1064nm and 532nm, two single-pulsed modes at 1064nm and 532nm, and one free-running mode at 1064nm. Considering availability, security and reliability of the laser as a surgery machine, some important subsystems of the laser are optimized carefully, such as Q-switch driver, wavelength-switching system, power supply, and control system etc. At last we get a prototype laser which can run for longer than 30 minutes continuously, and output Max10 pulse per second (pps) with Max800mJ energy at 1064nm double Q-Switch mode, or Max400mJ at 532nm. Using double pulse mode of the laser we do some removal experiments of tattoos and other pigments, and obtain good effect.